-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Snap Assistant not showing on touch devices #82
Comments
Hey @palexdev thank you for sharing this! I didn't test Tiling Shell on touch devices, but thanks to you we can assume that it does not work ahaha. I'm looking to add this feature! Hope to give you an update soon 🥳 |
Thank you very much @domferr your awesome extension is the last piece to complete my setup, looking forward to it 😄 |
Hey @palexdev I'm writing to give you a quick update. I hoped to implement this in few days and after some research it turned out that GNOME doesn't provide to extensions a way to know the touch position while moving the window. I'm looking into ask them 😉 and I'll tell you whether this is doable or not! |
@domferr Thanks for the update 👍🏻 Like, I don't understand why there's a difference between moue and touch gestures (in the context of tilingshell of course) and how does it affect the Snap Assistant. In my head the system works as follows:
Of course I know it's much more complicated, but I'm curious to know what is happening behind the scenes |
Yeah, and I use the mouse pointer position to show or hide the snap assistant and to detect which snap assistant's tile is hovered by the mouse. The problem here is that GNOME provides a way to know at any time the mouse pointer position, but touch events don't move the mouse pointer and GNOME doesn't provide a way to know the last touch position. I have tried to listen to touch events: they get fired correctly but as soon as you start grabbing a window the touch events are got by the window and not propagated to anything else The window position is itself a good thing to use to understand whether or not the snap assistant is shown, but it's not useful to solve the second problem 😕 However...I have a workaround in mind, which is complicated but at least we have a solution:
That won't work well when the window is moved to the edges, since my assumption may be wrong |
Ah yes I see the problem now It's a bit sad considering that GNOME is one of the best environments when it comes to touch support. The workaround could work in theory. I don't know the behavior at the edges, but I think the major issue is going to be precision. Still better than nothing though |
Hey @palexdev I've got very good news for you 😄 I implemented my workaround and it seems to work on my touch device! Please consider it is a rough version, test it for a while if you can and let me know of any bug or missing features!
If you don't know how to install, here it is a little guide for you. You need to perform the following steps: overwrite the files into |
Another update, with bugs fixed. It seems to work, but some everyday testing is still needed. I'll leave here the updated version, with touch support!
|
@domferr hello, sorry for not reporting back sooner, it's been a very busy week As you can see, two issues:
|
Hey thank you for the video. I'm curious: does it happen with apps that need on-screen keyboard only? Can you confirm that the highlighted tile of the snap assistant is the right one (the one under your finger)? |
A quick update: it seems a bug of the latest version (#99). I'm publishing a bugfix for that which will solve yours as well |
Describe the bug
The Snap Assistant popup does not show (not properly at least) when using touchscreens
To Reproduce
Screenshots
https://github.com/domferr/tilingshell/assets/16880178/b0553d1e-e4e3-458a-aee8-6e1dd43650db
Information (please complete the following):
Additional context
The device I'm experiencing the issue on is an Android tablet that I modded to use Linux. I have a bluetooth keyboard, and as you can see in the video (when the cursor appears I'm using the keyboard's trackpad) it works properly with it.
Let me know if you need logs or anything else and how to collect them
The text was updated successfully, but these errors were encountered: