summary refs log tree commit diff
path: root/pkgs/desktops/pantheon/desktop/gala/default.nix
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2021-10-28 09:54:39 +0800
committerBobby Rong <rjl931189261@126.com>2021-10-28 18:26:52 +0800
commit7dd57213b388b61e3416eb75d2eae5bbc7d3cc22 (patch)
tree1874d64245b8bbef72ca56a6ab314f953add83e2 /pkgs/desktops/pantheon/desktop/gala/default.nix
parent72fe1b16627e439b36777282ef5cad7522b6613f (diff)
downloadnixpkgs-7dd57213b388b61e3416eb75d2eae5bbc7d3cc22.tar
nixpkgs-7dd57213b388b61e3416eb75d2eae5bbc7d3cc22.tar.gz
nixpkgs-7dd57213b388b61e3416eb75d2eae5bbc7d3cc22.tar.bz2
nixpkgs-7dd57213b388b61e3416eb75d2eae5bbc7d3cc22.tar.lz
nixpkgs-7dd57213b388b61e3416eb75d2eae5bbc7d3cc22.tar.xz
nixpkgs-7dd57213b388b61e3416eb75d2eae5bbc7d3cc22.tar.zst
nixpkgs-7dd57213b388b61e3416eb75d2eae5bbc7d3cc22.zip
pantheon.gala: use smooth scroll events to handle mouse wheel in multitasking view
Diffstat (limited to 'pkgs/desktops/pantheon/desktop/gala/default.nix')
-rw-r--r--pkgs/desktops/pantheon/desktop/gala/default.nix29
1 files changed, 19 insertions, 10 deletions
diff --git a/pkgs/desktops/pantheon/desktop/gala/default.nix b/pkgs/desktops/pantheon/desktop/gala/default.nix
index db757b1aa4a..d0aa4885042 100644
--- a/pkgs/desktops/pantheon/desktop/gala/default.nix
+++ b/pkgs/desktops/pantheon/desktop/gala/default.nix
@@ -1,5 +1,7 @@
-{ lib, stdenv
+{ lib
+, stdenv
 , fetchFromGitHub
+, fetchpatch
 , nix-update-script
 , pantheon
 , pkg-config
@@ -38,11 +40,16 @@ stdenv.mkDerivation rec {
     sha256 = "1phnhj731kvk8ykmm33ypcxk8fkfny9k6kdapl582qh4d47wcy6f";
   };
 
-  passthru = {
-    updateScript = nix-update-script {
-      attrPath = "pantheon.${pname}";
-    };
-  };
+  patches = [
+    ./plugins-dir.patch
+    # Multitasking view: Don't use smooth scroll events to handle mouse wheel
+    # Avoid breaking the multitasking view scroll once xf86-input-libinput 1.2.0 lands
+    # https://github.com/elementary/gala/pull/1266
+    (fetchpatch {
+      url = "https://github.com/elementary/gala/commit/d2dcfdefdf97c1b49654179a7acd01ebfe017308.patch";
+      sha256 = "sha256-2lKrCz3fSjrfKfysuUHzeUjhmMm84K47n882CLpfAyg=";
+    })
+  ];
 
   nativeBuildInputs = [
     desktop-file-utils
@@ -73,15 +80,17 @@ stdenv.mkDerivation rec {
     mutter
   ];
 
-  patches = [
-    ./plugins-dir.patch
-  ];
-
   postPatch = ''
     chmod +x build-aux/meson/post_install.py
     patchShebangs build-aux/meson/post_install.py
   '';
 
+  passthru = {
+    updateScript = nix-update-script {
+      attrPath = "pantheon.${pname}";
+    };
+  };
+
   meta =  with lib; {
     description = "A window & compositing manager based on mutter and designed by elementary for use with Pantheon";
     homepage = "https://github.com/elementary/gala";