diff options
Diffstat (limited to 'Gui/wm/ws.c')
-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 ); - } } // ---------------------------------------------------------------------------------------------- |