summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-18 20:23:25 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-18 20:23:25 +0000
commit3c32a11ae5e61b753288074547aba1d3c7c7fe7c (patch)
tree87ad90c70a5aa82f1c097a02c2ff8f517ef1fa1f
parent389777bc37db7cdf87265c06fe41e11b93a32be1 (diff)
downloadmpv-3c32a11ae5e61b753288074547aba1d3c7c7fe7c.tar.bz2
mpv-3c32a11ae5e61b753288074547aba1d3c7c7fe7c.tar.xz
Set classhint directly after creating window just as all other vos do, in accordance with ICCCM.
Patch by Mark Tiefenbruck [mark at fluxbox org] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22266 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_gl2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 7719e4e118..0f68ffecb3 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -700,6 +700,9 @@ static int config_glx(uint32_t width, uint32_t height, uint32_t d_width, uint32_
vo_window = vo_x11_create_smooth_window(mDisplay, RootWindow(mDisplay,mScreen),
vinfo->visual, hint.x, hint.y, hint.width, hint.height, vinfo->depth, vo_x11_create_colormap(vinfo));
+ vo_x11_classhint( mDisplay,vo_window,"gl2" );
+ vo_hidecursor(mDisplay,vo_window);
+
XSelectInput(mDisplay, vo_window, StructureNotifyMask);
/* Tell other applications about this window */
@@ -718,9 +721,6 @@ static int config_glx(uint32_t width, uint32_t height, uint32_t d_width, uint32_
}
while (xev.type != MapNotify || xev.xmap.event != vo_window);
- vo_x11_classhint( mDisplay,vo_window,"gl2" );
- vo_hidecursor(mDisplay,vo_window);
-
XSync(mDisplay, False);
//XSelectInput(mDisplay, vo_window, StructureNotifyMask); // !!!!