[MPlayer-cvslog] r22266 - trunk/libvo/vo_gl2.c

reimar subversion at mplayerhq.hu
Sun Feb 18 21:23:25 CET 2007


Author: reimar
Date: Sun Feb 18 21:23:25 2007
New Revision: 22266

Modified:
   trunk/libvo/vo_gl2.c

Log:
Set classhint directly after creating window just as all other vos do, in accordance with ICCCM.
Patch by Mark Tiefenbruck [mark at fluxbox org]


Modified: trunk/libvo/vo_gl2.c
==============================================================================
--- trunk/libvo/vo_gl2.c	(original)
+++ trunk/libvo/vo_gl2.c	Sun Feb 18 21:23:25 2007
@@ -700,6 +700,9 @@
     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 @@
 	}
 	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); // !!!!



More information about the MPlayer-cvslog mailing list