ecere/gui/drivers/XInterface: Added stay on top support
authorJerome St-Louis <jerome@ecere.com>
Fri, 25 Apr 2014 23:31:48 +0000 (19:31 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 25 Apr 2014 23:32:00 +0000 (19:32 -0400)
ecere/src/gui/drivers/XInterface.ec

index e0e7fb5..4e65cf9 100644 (file)
@@ -2682,6 +2682,9 @@ class XInterface : Interface
                XChangeProperty(xGlobalDisplay, windowHandle, atoms[_net_wm_window_type], XA_ATOM, 32,
                   PropModeReplace, (unsigned char*)&hints, count);
 
+               if(window.stayOnTop)
+                  SetNETWMState((X11Window)windowHandle, false, add, atoms[_net_wm_state_above], 0);
+
                {
                   XWMHints xwmHints;
                   xwmHints.flags = InputHint;
@@ -2947,7 +2950,7 @@ class XInterface : Interface
 
    void OrderRootWindow(Window window, bool topMost)
    {
-
+      SetNETWMState((X11Window)window.windowHandle, false, topMost ? add : remove, atoms[_net_wm_state_above], 0);
    }
 
    void SetRootWindowColor(Window window)