]> Dogcows Code - chaz/openbox/blobdiff - openbox/stacking.c
Remove newline from startupnotify description
[chaz/openbox] / openbox / stacking.c
index 63819ae254bc19075d26ecad1efe9fd2dec8c7aa..4c24e3e87f06ed2414006f41abe266e3872ba7a9 100644 (file)
@@ -25,6 +25,7 @@
 #include "group.h"
 #include "frame.h"
 #include "window.h"
+#include "event.h"
 #include "debug.h"
 
 GList  *stacking_list = NULL;
@@ -220,6 +221,15 @@ static void restack_windows(ObClient *selected, gboolean raise)
     GList *modals = NULL;
     GList *trans = NULL;
 
+    if (raise) {
+        ObClient *p;
+
+        /* if a window is modal for another single window, then raise it to the
+           top too, the same is done with the focus order */
+        while (selected->modal && (p = client_direct_parent(selected)))
+            selected = p;
+    }
+
     /* remove first so we can't run into ourself */
     it = g_list_find(stacking_list, selected);
     g_assert(it);
This page took 0.021329 seconds and 4 git commands to generate.