do-sch / gnome-shell-touchpad-window-move

GNOME Extension that allows moving windows with three finger trackpad gestures
GNU General Public License v3.0
24 stars 6 forks source link

Won't load on GNOME Shell 3.36 #5

Closed brunelli closed 4 years ago

brunelli commented 4 years ago

lg shows the following: TypeError: Clutter.DeviceManager is undefined

brunelli commented 4 years ago

Relevant: Introduce ClutterSeat and deprecate ClutterDeviceManager (#962) · Issues · GNOME / mutter · GitLab

My first attempt was unsuccessful, though:

-        const deviceManager = Clutter.DeviceManager.get_default();
-        this._virtualTouchpad = deviceManager.create_virtual_device(Clutter.InputDeviceType.TOUCHPAD_DEVICE);
-        this._virtualKeyboard = deviceManager.create_virtual_device(Clutter.InputDeviceType.KEYBOARD_DEVICE);
+        const backend = Clutter.get_default_backend();
+        const seat = backend.get_default_seat();
+        this._virtualTouchpad = seat.create_virtual_device(Clutter.InputDeviceType.TOUCHPAD_DEVICE);
+        this._virtualKeyboard = seat.create_virtual_device(Clutter.InputDeviceType.KEYBOARD_DEVICE);
do-sch commented 4 years ago

Thank you for the API-calls. It would probably have taken me hours to find them.

With TOUCHPAD_DEVICE as input device type my Shell keeps crashing with meta_input_settings_get_tablet_wacom_device: assertion 'info != NULL' failed. Using POINTER_DEVICE shouldn't make a difference though.

It should be fixed now but it'll probably take some hours until the update arrives in the extension store.

brunelli commented 4 years ago

Thank you for this great extension!