Mercurial > mplayer.hg
changeset 22248:fb03fcc0817e
Set classhint directly after creating window just as all other vos do, in accordance with ICCCM.
Patch by Mark Tiefenbruck [mark at fluxbox org]
author | reimar |
---|---|
date | Sun, 18 Feb 2007 20:23:25 +0000 |
parents | 69becfa63e68 |
children | 3000f296fecc |
files | libvo/vo_gl2.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl2.c Sun Feb 18 20:21:19 2007 +0000 +++ b/libvo/vo_gl2.c Sun Feb 18 20:23:25 2007 +0000 @@ -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); // !!!!