gerritdevriese / kzones

KDE KWin Script for snapping windows into zones
https://store.kde.org/p/1909220
GNU General Public License v3.0
238 stars 14 forks source link

Touchscreen Compatibility #52

Closed k4ever closed 5 months ago

k4ever commented 9 months ago

Is there any way to add/re-add touchscreen compatibility? I used KZones on my Surface Pro 8 a few months ago and it worked great when moving windows with a touchscreen. However, lately it doesn't seem to work with a touchscreen. The top drag zone indicator will only show with a mouse and I can only drag windows to one zone when using the touchscreen (the one on the right side of the screen). I don't know what changed, but touchscreen compatibility is completely broken in later versions.

Edit: Forgot to list: Hardware: Microsoft Surface Pro 8 OS: EndeavourOS Kernel: 6.4.12-arch1-1-surface KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.109.0 QT Version: 5.15.10

gerritdevriese commented 9 months ago

Hi, are you using Wayland or X11?

k4ever commented 8 months ago

I apologize for not listing that. I'm using Wayland.

gerritdevriese commented 8 months ago

You are right, I'm getting the same behavior. This is probably because the scripting API doesn't return a cursorPos when using a touchscreen (previously we used xdotool for this) https://github.com/gerritdevriese/kzones/pull/23

I'm not sure when I will be able to solve this, in the meantime you can maybe use the old version?

k4ever commented 8 months ago

You are right, I'm getting the same behavior. This is probably because the scripting API doesn't return a cursorPos when using a touchscreen (previously we used xdotool for this) #23

I'm not sure when I will be able to solve this, in the meantime you can maybe use the old version?

I apologize. I was on vacation for a week and just saw your post last night. Which older version do you recommend (please provide a link)? I tried a few older versions and either still had the issue or the version didn't work well with Wayland at all. I can't remember the version that worked well.

gerritdevriese commented 8 months ago

You can find all versions here: https://github.com/gerritdevriese/kzones/releases Everything before v0.5 used the old position system, so v0.4 should work (granted you use Titlebar or Window as zone determine method)

slimx commented 7 months ago

0.4 doesn't work either

gerritdevriese commented 6 months ago

Which "Target method" are you using? Only Titlebar or Window will work as xdotool isn't supported on Wayland.