mate-desktop / mate-screensaver

MATE screen saver and locker
https://mate-desktop.org
GNU General Public License v2.0
48 stars 40 forks source link

Keyboard input impossible in screensaver, if active window before locking was xfreerdp(v2) or Virtualbox #172

Open sunweaver opened 5 years ago

sunweaver commented 5 years ago

Expected behaviour

When running a remote RDP session via xfreerdp (v2) and then the mate-screensaver kicks it, I'd expect that I'd be able to unlock the session by entering a password. Similarly, I would expect this from a Virtualbox session running in foreground while the screensaver kicks in.

Actual behaviour

When running a remote RDP session via xfreerdp (v2) and then the mate-screensaver kicks it, I cannot type anything into mate-screensaver's password field. Mouse clicks work, but keyboard input is still attached/locked to the underlying FreeRDP session window. Same situation occurs, if Virtualbox is my foreground application when mate-screensaver kicks in.

Steps to reproduce the behaviour

MATE general version

Package version

Linux Distribution

Link to downstream report of your Distribution

sunweaver commented 5 years ago

Feedback from FreeRDP upstream: they do a XGrabKeyboard when the mouse moves into the RDP session window.

Maybe, the screensaver should that, too. To assure, that the keyboard is grabbed by the password dialog field?

tari01 commented 5 years ago

@sunweaver

Actually, this is not caused only by the applications you mention. Quite a few "focus grabbing" applications prevent the unlock input field from getting focus. Related to issue #156.