-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[screenlocker] Also grab XInput2 devices
With XInput2 it's possible that multiple pairs of keyboard and pointers are connected. As the lock screen only grabbed keyboard and pointer using the core protocol any additional input devices were still reporting input events to non-lockscreen windows creating the risk of interaction with the system and accidentially typing a password where it doesn't belong. This change ensures that all additional master devices are also grabbed. Unfortunately there are no xcb bindings for xinput2 (considered experimental and thus not build on at least all debian based distros) and because of that the XLib library is used. This brings some problems as we cannot process the events (for that we would need xcb bindings, to get the events). To still be able to get any keyboard and mouse events we grab using the core protocol as it used to be and then ignore the "Virtual core" devices and don't grab them with XInput2. Input events from additional devices are grabbed and ignored, but definately no longer delivered to other windows. BUG: 341469 FIXED-IN: 5.3.0 REVIEW: 122558
- Loading branch information
1 parent
9e69e84
commit 23b6cfb
Showing
5 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters