]> Dogcows Code - chaz/openbox/blobdiff - openbox/stacking.c
Merge branch 'backport' into work
[chaz/openbox] / openbox / stacking.c
index 03a62dd4413bdc536b2ed0589f71e21fdc4252dc..3c05df49c64c0c23f470a87aa4e090ee33fb4d29 100644 (file)
@@ -221,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.020523 seconds and 4 git commands to generate.