From 3c32a11ae5e61b753288074547aba1d3c7c7fe7c Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 18 Feb 2007 20:23:25 +0000 Subject: 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 --- libvo/vo_gl2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libvo') 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); // !!!! -- cgit v1.2.3