Ivan Molodetskikh on Nostr: Wow I didn't realize how good Xwayland integrates with relative-pointer and ...
Wow I didn't realize how good Xwayland integrates with relative-pointer and pointer-constraints. So you've got your typical X11 3D game which warps the pointer to the center of the window every frame, right? Xwayland will transparently wrap all of that with an X11 virtual pointer in such a way that the game will think it's warping the pointer and receive the right events, while the Wayland compositor outside is passing relative motion and locking the pointer in place. Even rootful Xwayland!
Published at
2023-12-21 12:40:08Event JSON
{
"id": "e445400d73d1ae9f2759a25c426d446bd95315b742f24653ccbef4852631ec27",
"pubkey": "90974b33958f17a552633635e430cea28361aad5021645673c1973064790fc6f",
"created_at": 1703162408,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.online/users/YaLTeR/statuses/111618451598191732",
"activitypub"
]
],
"content": "Wow I didn't realize how good Xwayland integrates with relative-pointer and pointer-constraints. So you've got your typical X11 3D game which warps the pointer to the center of the window every frame, right? Xwayland will transparently wrap all of that with an X11 virtual pointer in such a way that the game will think it's warping the pointer and receive the right events, while the Wayland compositor outside is passing relative motion and locking the pointer in place. Even rootful Xwayland!",
"sig": "33e4c09894db5a70611203dc78ab04cf01c5bee1a3933c9af7ac13d55229b13fdc2ee3bfe9a4af666317d79ef4b7d3789bf533479b01f29d117f4eaa645fe9d8"
}