From 5e16f03cec2a32299066539adc229ec162c0a3a4 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 16 Aug 2023 19:14:41 +0800 Subject: [PATCH] gnome.mutter43: Remove support for window shading This fixes a crash when gsettings-desktop-schemas >= 45.alpha is used: Settings schema 'org.gnome.desktop.wm.keybindings' does not contain a key named 'toggle-shaded'. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2884 --- pkgs/desktops/gnome/core/mutter/43/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/desktops/gnome/core/mutter/43/default.nix b/pkgs/desktops/gnome/core/mutter/43/default.nix index dae0647c2a57..e565603ae576 100644 --- a/pkgs/desktops/gnome/core/mutter/43/default.nix +++ b/pkgs/desktops/gnome/core/mutter/43/default.nix @@ -67,6 +67,18 @@ stdenv.mkDerivation (finalAttrs: { url = "https://gitlab.gnome.org/GNOME/mutter/-/commit/285a5a4d54ca83b136b787ce5ebf1d774f9499d5.patch"; sha256 = "/npUE3idMSTVlFptsDpZmGWjZ/d2gqruVlJKq4eF4xU="; }) + + # Remove support for window shading. + # The corresponding key was removed in gsettings-desktop-schemas 45.alpha. + # https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2884 + # + # Fetch the patch from magpie as they share same code base and this feature + # is never supported on wayland (note that magpie 0.9.x won't support wayland). + # https://github.com/BuddiesOfBudgie/magpie/issues/9 + (fetchpatch { + url = "https://github.com/BuddiesOfBudgie/magpie/commit/4177c466375462ca8ed8fdb60913df4422f19144.patch"; + sha256 = "NVx40WDnlUL050D529KVohvNBdVrheXxmJ73U3+KSeQ="; + }) ]; mesonFlags = [