From b4b96fbbeeb4d51f4701361a73e6a75f737ab981 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 5 Nov 2023 01:39:44 -0500 Subject: [PATCH] fix(Tablet): restart lisgd every rotation to rotate gestures --- devices/wim/config/ags/services/tablet.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devices/wim/config/ags/services/tablet.js b/devices/wim/config/ags/services/tablet.js index 8c88c5a6..31828778 100644 --- a/devices/wim/config/ags/services/tablet.js +++ b/devices/wim/config/ags/services/tablet.js @@ -1,4 +1,5 @@ import Service from 'resource:///com/github/Aylur/ags/service.js'; +import TouchGestures from './touch-gestures.js'; import { execAsync, subprocess } from 'resource:///com/github/Aylur/ags/utils.js'; import GUdev from 'gi://GUdev'; @@ -11,7 +12,6 @@ const ROTATION_MAPPING = { const SCREEN = 'desc:BOE 0x0964'; -// TODO: Make autorotate reset lisgd class Tablet extends Service { static { Service.register(this, { @@ -148,6 +148,11 @@ class Tablet extends Service { `device:${dev}:transform`, String(orientation)]) .catch(print); }); + + if (TouchGestures.gestureDaemon) { + TouchGestures.killDaemon(); + TouchGestures.startDaemon(); + } } }, err => logError(err),