Skip to content

Commit b9a305e

Browse files
committed
Fix pushing multiple modal proxies
1 parent 23e189f commit b9a305e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WindowManager.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,16 +861,16 @@ namespace Gala {
861861

862862
modal_stack.offer_head (proxy);
863863

864+
proxy.grab = stage.grab (actor);
865+
864866
// modal already active
865867
if (modal_stack.size >= 2)
866868
return proxy;
867869

868-
unowned Meta.Display display = get_display ();
869-
870870
update_input_area ();
871-
proxy.grab = stage.grab (actor);
872871

873872
if (modal_stack.size == 1) {
873+
unowned Meta.Display display = get_display ();
874874
display.disable_unredirect ();
875875
}
876876

0 commit comments

Comments
 (0)