aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 10:56:44 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 12:08:33 +0100
commitd30af2b00b1a5a0ddb7cfd214b98718da758917a (patch)
treeea7521e0ef237e404813018e1bf785d349d1baa4 /src
parentc5f16ead014454267163f4a8a65f8178fc7369c9 (diff)
downloadarctica-greeter-d30af2b00b1a5a0ddb7cfd214b98718da758917a.tar.gz
arctica-greeter-d30af2b00b1a5a0ddb7cfd214b98718da758917a.tar.bz2
arctica-greeter-d30af2b00b1a5a0ddb7cfd214b98718da758917a.zip
Enable touchpad tap-to-click.
Ported from Slick Greeter by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/85f83be9977faf2482d38d2cc289f0542b1c06a4
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 89d52b8..e193140 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -720,6 +720,16 @@ public class ArcticaGreeter : Object
}
}
+ private static void enable_tap_to_click ()
+ {
+ try {
+ Process.spawn_command_line_sync("/usr/bin/arctica-greeter-enable-tap-to-click", null, null, null);
+ }
+ catch (Error e){
+ warning ("Error while enabling tap-to-click: %s", e.message);
+ }
+ }
+
private static void activate_numlock ()
{
try {
@@ -897,6 +907,9 @@ public class ArcticaGreeter : Object
}
}
+ /* Enable touchpad tap-to-click */
+ enable_tap_to_click ();
+
Gtk.init (ref args);
Ido.init ();