summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/libinput-gestures
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-10-18 16:40:01 -0500
committerWill Dietz <w@wdtz.org>2018-10-18 16:47:38 -0500
commit72f31fbc196775eae551c1ce7f8b56b819ab96e0 (patch)
tree3b0ae4d044050cf56dabfbd020f0253da81b5dbf /pkgs/tools/inputmethods/libinput-gestures
parent69c15c0c250193f4d212bbcad4a5093da7f5fe8e (diff)
downloadnixpkgs-72f31fbc196775eae551c1ce7f8b56b819ab96e0.tar
nixpkgs-72f31fbc196775eae551c1ce7f8b56b819ab96e0.tar.gz
nixpkgs-72f31fbc196775eae551c1ce7f8b56b819ab96e0.tar.bz2
nixpkgs-72f31fbc196775eae551c1ce7f8b56b819ab96e0.tar.lz
nixpkgs-72f31fbc196775eae551c1ce7f8b56b819ab96e0.tar.xz
nixpkgs-72f31fbc196775eae551c1ce7f8b56b819ab96e0.tar.zst
nixpkgs-72f31fbc196775eae551c1ce7f8b56b819ab96e0.zip
libinput-gestures: update patches
Don't bother skipping the version check,
keep diff against upstream simple.
Diffstat (limited to 'pkgs/tools/inputmethods/libinput-gestures')
-rw-r--r--pkgs/tools/inputmethods/libinput-gestures/0001-hardcode-name.patch2
-rw-r--r--pkgs/tools/inputmethods/libinput-gestures/0002-paths.patch34
2 files changed, 19 insertions, 17 deletions
diff --git a/pkgs/tools/inputmethods/libinput-gestures/0001-hardcode-name.patch b/pkgs/tools/inputmethods/libinput-gestures/0001-hardcode-name.patch
index b694fcabbd0..4655879149d 100644
--- a/pkgs/tools/inputmethods/libinput-gestures/0001-hardcode-name.patch
+++ b/pkgs/tools/inputmethods/libinput-gestures/0001-hardcode-name.patch
@@ -1,5 +1,5 @@
 diff --git a/libinput-gestures b/libinput-gestures
-index f337ba3..fe56d66 100755
+index 66479b6..aca94ac 100755
 --- a/libinput-gestures
 +++ b/libinput-gestures
 @@ -6,7 +6,7 @@ from collections import OrderedDict
diff --git a/pkgs/tools/inputmethods/libinput-gestures/0002-paths.patch b/pkgs/tools/inputmethods/libinput-gestures/0002-paths.patch
index c6ee123db8b..407450c8bcc 100644
--- a/pkgs/tools/inputmethods/libinput-gestures/0002-paths.patch
+++ b/pkgs/tools/inputmethods/libinput-gestures/0002-paths.patch
@@ -1,29 +1,28 @@
 diff --git a/libinput-gestures b/libinput-gestures
-index f337ba3..5f5b05d 100755
+index aca94ac..c2f03ca 100755
 --- a/libinput-gestures
 +++ b/libinput-gestures
-@@ -75,17 +75,13 @@ def get_libinput_vers():
+@@ -77,7 +77,7 @@ def get_libinput_vers():
      'Return the libinput installed version number string'
      # Try to use newer libinput interface then fall back to old
      # (depreciated) interface.
 -    res = run(('libinput', '--version'), check=False)
 +    res = run(('@libinput@', '--version'), check=False)
-     return res.strip() if res else run(('libinput-list-devices', '--version'))
+     return res.strip() if res else \
+             run(('libinput-list-devices', '--version'), check=False)
  
- # Libinput changed the way in which it's utilities are called
- libvers = get_libinput_vers()
--if Version(libvers) >= Version('1.8'):
+@@ -87,8 +87,8 @@ if not libvers:
+     sys.exit('libinput helper tools do not seem to be installed?')
+ 
+ if Version(libvers) >= Version('1.8'):
 -    cmd_debug_events = 'libinput debug-events'
 -    cmd_list_devices = 'libinput list-devices'
--else:
--    cmd_debug_events = 'libinput-debug-events'
--    cmd_list_devices = 'libinput-list-devices'
-+cmd_debug_events = '@libinput@ debug-events'
-+cmd_list_devices = '@libinput@ list-devices'
- 
- def get_devices_list():
-     'Get list of devices and their attributes (as a dict) from libinput'
-@@ -187,7 +183,7 @@ class COMMAND_internal(COMMAND):
++    cmd_debug_events = '@libinput@ debug-events'
++    cmd_list_devices = '@libinput@ list-devices'
+ else:
+     cmd_debug_events = 'libinput-debug-events'
+     cmd_list_devices = 'libinput-list-devices'
+@@ -199,7 +199,7 @@ class COMMAND_internal(COMMAND):
  
      def run(self):
          'Get list of current workspaces and select next one'
@@ -32,7 +31,7 @@ index f337ba3..5f5b05d 100755
          if not stdout:
              # This command can fail on GNOME when you have only a single
              # dynamic workspace using Xorg (probably a GNOME bug) so let's
-@@ -220,7 +216,7 @@ class COMMAND_internal(COMMAND):
+@@ -233,7 +233,7 @@ class COMMAND_internal(COMMAND):
  
          # Switch to desired workspace
          if index >= minindex and index < maxindex:
@@ -41,3 +40,6 @@ index f337ba3..5f5b05d 100755
  
  # Table of gesture handlers
  handlers = OrderedDict()
+-- 
+2.19.1
+