[vlc-devel] commit: Add class for ICCCM Window Management. ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Apr 15 21:25:13 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 15 22:24:29 2009 +0300| [57ecf19abbbe778358a2c6f1f385bcb2394c0124] | committer: Rémi Denis-Courmont
Add class for ICCCM Window Management.
This does _not_ fix #2322 (Qt4).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57ecf19abbbe778358a2c6f1f385bcb2394c0124
---
modules/video_output/xcb/window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/xcb/window.c b/modules/video_output/xcb/window.c
index ac5344a..5cf4b4b 100644
--- a/modules/video_output/xcb/window.c
+++ b/modules/video_output/xcb/window.c
@@ -124,11 +124,15 @@ static int Open (vlc_object_t *obj)
goto error;
}
+ /* ICCCM
+ * No cut&paste nor drag&drop, only Window Manager communication. */
/* Plain ASCII localization of VLC for ICCCM window name */
set_ascii_prop (conn, window, XA_WM_NAME,
pgettext ("ASCII VLC media player", "VLC media player"));
set_ascii_prop (conn, window, XA_WM_ICON_NAME,
pgettext ("ASCII VLC", "VLC"));
+ xcb_change_property (conn, XCB_PROP_MODE_REPLACE, window, XA_WM_CLASS,
+ XA_STRING, 8, 8, "vlc\0VLC");
wnd->handle.xid = window;
wnd->p_sys = p_sys;
More information about the vlc-devel
mailing list