-
Notifications
You must be signed in to change notification settings - Fork 83
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
Implement pointer constraint. #300
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR @vanfanel. I am just taking a (very) quick look at it. Could you run |
Done. It was my first time using that tool, seems very useful indeed. The more you know! |
@joggee-fr any news on merging this, please? |
@vanfanel, I am not confident enough in my knowloedge for this part to give it a go. I hope @emersion could give it a look. Especially for the so-called "big hack" part. |
9cffcd6
to
7bf842f
Compare
@joggee-fr I have done what you asked me: I rebased to latest Cage code, and squashed all commits into one. And yes, the "big hack" part is needed with current wlroots 0.17, it comes directly from current Sway, you can see it here: |
1913ba7
to
3f72f1e
Compare
@joggee-fr I have fixed those comment-related issues you pointed me to, and squashed all commits again. |
@joggee-fr Is there anything else to get this merged, please? |
This PR doesn't seem to work? I hope that I'm just doing something wrong.
|
It definitely worked with Minecraft before, we used it last summer to run Minecraft at Gamescom. |
Using that fork doesn't work either. Same results as with this. Is it supposed to "just work" or do I have to use a keybind or something? |
also does not seem to be working for me either. Attempting with minecraft 1.8.9 it looks like the behaviour is the exact same as master. Cursor freely leaves the window in pause menus and looking around in game. |
What exactly do you mean by "leave the window"? Are you running cage from within another desktop environment? |
I thought the entire point of pointer constraint would be to stop the cursor from leaving the cage window. I guess I didn't fully understand what it meant. Is this not what was implemented? I am running cage within another wayland desktop environment. |
Cage is supposed to be used instead of a regular desktop environment. When run from inside another desktop environment, it will just create a virtual output, which to my understanding is mostly intended for testing purposes. Anyway, this is probably a bit off-topic for this pull request. |
Implements the previously missing pointer constraint functionality.
Most code came from Sway.