Skip to content

Commit 575166e

Browse files
committed
Fix pushing multiple modal proxies
The grab should always be on the actor that was last pushed modal. Clutter keeps a stack of grabs internally so we just can grab every actor.
1 parent 58fc51c commit 575166e

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
@@ -855,16 +855,16 @@ namespace Gala {
855855

856856
modal_stack.offer_head (proxy);
857857

858+
proxy.grab = stage.grab (actor);
859+
858860
// modal already active
859861
if (modal_stack.size >= 2)
860862
return proxy;
861863

862-
unowned Meta.Display display = get_display ();
863-
864864
update_input_area ();
865-
proxy.grab = stage.grab (actor);
866865

867866
if (modal_stack.size == 1) {
867+
unowned Meta.Display display = get_display ();
868868
display.disable_unredirect ();
869869
}
870870

0 commit comments

Comments
 (0)