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
This commit is contained in:
reimar 2007-02-18 20:23:25 +00:00
parent 389777bc37
commit 3c32a11ae5
1 changed files with 3 additions and 3 deletions

View File

@ -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); // !!!!