Skip to content

Commit

Permalink
Compositor: disable tiling shortcuts (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Feb 26, 2024
1 parent 612c483 commit fa4bd88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions compositor/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ namespace GreeterCompositor {
public override void start () {
show_stage ();

disable_tiling_shortcuts ();

fade_in_screen.save_easing_state ();
fade_in_screen.set_easing_duration (1000);
fade_in_screen.set_easing_mode (Clutter.AnimationMode.EASE);
Expand All @@ -95,6 +97,16 @@ namespace GreeterCompositor {
});
}

private void disable_tiling_shortcuts () {
var mutter_settings = new GLib.Settings ("org.gnome.mutter.keybindings");
mutter_settings.set_strv ("toggle-tiled-left", {});
mutter_settings.set_strv ("toggle-tiled-right", {});

var wm_settings = new GLib.Settings ("org.gnome.desktop.wm.keybindings");
wm_settings.set_strv ("minimize", {});
wm_settings.set_strv ("toggle-maximized", {});
}

void refresh_background () {
unowned Meta.Display display = get_display ();

Expand Down

0 comments on commit fa4bd88

Please sign in to comment.