diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-08 16:41:44 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-08 16:41:44 +0000 |
commit | 1bff6e8bc37081ef8a76c944726219c2cb53413e (patch) | |
tree | fdab40e6729842f22940f100536e94f251808c4c /Gui/wm | |
parent | 8a99b7a507c9cd01127ec5c18970a1e27327517f (diff) |
some bugfix, x[11|mga|v] ( fullscreen with more files )
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6014 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/wm')
-rw-r--r-- | Gui/wm/ws.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Gui/wm/ws.c b/Gui/wm/ws.c index 90e81f0b8f..2b159c5bf5 100644 --- a/Gui/wm/ws.c +++ b/Gui/wm/ws.c @@ -961,30 +961,30 @@ void wsIconify( wsTWindow win ) // ---------------------------------------------------------------------------------------------- void wsMoveTopWindow( wsTWindow * win ) { - if ( wsWMType == wsWMIceWM ) - { - XUnmapWindow( wsDisplay,win->WindowID ); - XMapWindow( wsDisplay,win->WindowID ); - return; - } -/* - if ( XInternAtom( wsDisplay,"_NET_ACTIVE_WINDOW",False ) != None ) + switch ( wsWMType ) { - XEvent e; - - e.xclient.type=ClientMessage; - e.xclient.message_type=XInternAtom( wsDisplay,"_NET_ACTIVE_WINDOW",False ); - e.xclient.display=wsDisplay; - e.xclient.window=win->WindowID; - e.xclient.format=32; - e.xclient.data.l[0]=0; - XSendEvent( wsDisplay,wsRootWin,False,SubstructureRedirectMask,&e ); + case wsWMIceWM: + XUnmapWindow( wsDisplay,win->WindowID ); + XMapWindow( wsDisplay,win->WindowID ); + break; + case wsWMNetWM: + case wsWMKDE: + { + XEvent e; + e.xclient.type=ClientMessage; + e.xclient.message_type=XInternAtom( wsDisplay,"_NET_ACTIVE_WINDOW",False ); + e.xclient.display=wsDisplay; + e.xclient.window=win->WindowID; + e.xclient.format=32; + e.xclient.data.l[0]=0; + XSendEvent( wsDisplay,wsRootWin,False,SubstructureRedirectMask,&e ); + break; + } + default: + XMapRaised( wsDisplay,win->WindowID ); + XRaiseWindow( wsDisplay,win->WindowID ); + break; } - else */ - { - XMapRaised( wsDisplay,win->WindowID ); - XRaiseWindow( wsDisplay,win->WindowID ); - } } // ---------------------------------------------------------------------------------------------- |