All pastes #245226 Raw Edit

brain0

public text v1 · immutable
#245226 ·published 2006-11-10 19:02 UTC
rendered paste body
--- libwnck/window.c	2006-07-20 19:45:44.000000000 +0200
+++ libwnck/window.c	2006-09-01 18:39:00.000000000 +0200
@@ -2191,6 +2191,12 @@ update_actions (WnckWindow *window)
     window->priv->actions |=
         WNCK_WINDOW_ACTION_MAXIMIZE   |
         WNCK_WINDOW_ACTION_UNMAXIMIZE;
+
+  /* There's no _NET_WM_ACTION_ABOVE hint so always add it if
+     window manager claims to support_NET_WM_STATE_ABOVE */
+  if (wnck_screen_net_wm_supports (wnck_window_get_screen (window),
+				   "_NET_WM_STATE_ABOVE"))
+      window->priv->actions |= WNCK_WINDOW_ACTION_ABOVE;
 }
 
 static void