Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ namespace Gala {

private Gee.Map<Meta.Window, WindowGroup> overridden_window_group = new Gee.HashMap<Meta.Window, WindowGroup> ();

private bool display_closing = false;

construct {
behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior");

Expand All @@ -114,6 +116,10 @@ namespace Gala {
}

public override void start () {
get_display ().closing.connect (() => {
display_closing = true;
});

input_method = new InputMethod (get_display ());
#if HAS_MUTTER47
Utils.get_clutter_backend_from_display (get_display ()).set_input_method (input_method);
Expand Down Expand Up @@ -487,6 +493,10 @@ namespace Gala {
return;
}

if (display_closing) {
return;
}

if (proxy.grab != null) {
proxy.grab.dismiss ();
}
Expand Down
Loading