Comments (3)
From another project that I'm referencing (gjs-osk), it seems that they use Clutter's events and vfunctions to detect pointer, touch, and event pen events ( BUTTON_PRESS
, MOTION
, BUTTON_RELEASE
, TOUCH_BEGIN
, TOUCH_UPDATE
, TOUCH_END
) For all 3 event types they use event.get_coords()
to find the coordinates for their respective events. Not sure how to implement this within moveHandler.js yet as I have no experience with gjs but I am able to test it using a convertible laptop.
Update: I realized that this suggestion probably wouldn't work with the moveHandler since it deals more with Meta rather than Clutter for input. Maybe there's some way to work it out that eludes me at my current skill level. Would love to see someone help solve this issue as it would increase gnome's compatibility with touch devices.
from tiling-assistant.
I've been looking around for others' solutions and found that Fly-Pie already created an implementation of what I proposed above. It seems that they use a background modal that captures Clutter input events which is then sent to the menu where some checks are performed before ultimately finding the input's coordinates.
I feel like something of this nature could be implemented within this project if it's able to mesh well with the moveHandler class and Meta.
from tiling-assistant.
Thanks for the work, I'll look into the other projects. I've wanted to rework the 'moveHandler' at some point. I'll try to get the touch support into it then as well.
from tiling-assistant.
Related Issues (20)
- Gnome Shell crashes as soon as Tiling Assistant is enabled HOT 1
- Switching workspaces in GNOME sometimes moves window to wrong workspace for a brief moment HOT 5
- dconf variables not reset at uninstall/disable of extension HOT 2
- No longer compatible with Fedora 39. HOT 4
- extension is incompatible with GNOME 45 HOT 1
- Fullscreen tiling from application launch HOT 3
- Cross-post: Ubuntu 23.10 Tiling Assistant stops working when Alt is set as the modifier button. HOT 5
- make Tiling Assistant emit an (optional!) warning when it can't fully resize/fit a window HOT 5
- 'Edge Tiling Plus' Proposal HOT 1
- Make the split view windows resize when one of them is resized using keyboard HOT 2
- Hidden windows should not be suggested as tiling options
- Add 'shift' key as option under 'Favorite layout' Move Mode Activator HOT 1
- Layouts breaks after the screen turns off due to inactivity HOT 1
- Gaps Between Terminal Windows and Border of the Screen HOT 9
- Cross posting: Opening a new tab in Gnome-Terminal moves the terminal window to a different monitor
- Clicking the top bar un-maximizes window in Gnome 46 HOT 2
- gnome-shell crash with failed assertion window->stack_position >= 0 HOT 7
- [FEATURES QUESTION] AUTO TILLING HOT 2
- tiled mpv window snaps back to untiled state when clicking on it since gnome 46 HOT 6
- [Feature Request] Snapped Window should take the orientation of the window that was already there HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiling-assistant.