Commit ed1df1f7 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/skins/x11/x11_window.cpp: try _NET_WM_STATE_STAYS_ON_TOP as well for KDE.
parent f20d985a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* x11_window.cpp: X11 implementation of the Window class * x11_window.cpp: X11 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: x11_window.cpp,v 1.28 2003/10/19 20:05:56 asmax Exp $ * $Id: x11_window.cpp,v 1.29 2003/10/19 22:25:10 gbazin Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -182,8 +182,7 @@ void X11Window::ToggleOnTop() ...@@ -182,8 +182,7 @@ void X11Window::ToggleOnTop()
ev.xclient.send_event = True; ev.xclient.send_event = True;
ev.xclient.message_type = XInternAtom( display, "_NET_WM_STATE", True ); ev.xclient.message_type = XInternAtom( display, "_NET_WM_STATE", True );
ev.xclient.format = 32; ev.xclient.format = 32;
ev.xclient.data.l[1] = XInternAtom( display, "_NET_WM_STATE_ABOVE", ev.xclient.data.l[1] = XInternAtom( display, "_NET_WM_STATE_ABOVE", False);
False);
ev.xclient.data.l[2] = 0; ev.xclient.data.l[2] = 0;
ev.xclient.data.l[3] = 0; ev.xclient.data.l[3] = 0;
ev.xclient.data.l[4] = 0; ev.xclient.data.l[4] = 0;
...@@ -203,6 +202,14 @@ void X11Window::ToggleOnTop() ...@@ -203,6 +202,14 @@ void X11Window::ToggleOnTop()
XSendEvent( display, DefaultRootWindow( display ), False, XSendEvent( display, DefaultRootWindow( display ), False,
SubstructureRedirectMask | SubstructureNotifyMask, &ev ); SubstructureRedirectMask | SubstructureNotifyMask, &ev );
XUNLOCK; XUNLOCK;
/* For KDE */
ev.xclient.data.l[1] = XInternAtom( display, "_NET_WM_STATE_STAYS_ON_TOP",
False);
XLOCK;
XSendEvent( display, DefaultRootWindow( display ), False,
SubstructureRedirectMask | SubstructureNotifyMask, &ev );
XUNLOCK;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void X11Window::OSShow( bool show ) void X11Window::OSShow( bool show )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment