[WiP] Xwayland keyboard grab
Created by: Ongy
This is an implementation for the protocol mentioned in https://github.com/swaywm/wlroots/issues/624
While implementing it, I noticed I had a wrong idea of the exact scope. This does not work for dmenu, but pinentry-gtk-2
uses it for secure input.
Things still left to be done:
-
Cleanup the name of things/squash commits -
Restrict to xwayland? (rootston doesn't restrict access to protocols at all)
Testplan:
Get an xwayland build from git (at least arch package is too old).
Start up rootston with this patch, and open pinentry-gtk-2
inside it.
EDIT: Type GETPIN
into the pinentry shell, to get the window that uses passive grabs.
Try to move focus to another window to input there.