Prevent the lockscreen password field from loosing focus
Review Request #124956 - Created Aug. 27, 2015 and discarded
If KAlarm pops up a window when the screen is locked it steals the focus from the password field. With this patch the focus is stolen back immediately.
Set KAlarm to open a new "display alarm" after a minute, lock the screen and see the focus go away when the minute changes.
Apply the patch, set KAlarm to open another display alarm, lock the screen and wait for the minute to change and notice that the focus has not gone anywhere this time.
please put the patch on hold till my lockscreen related patches are merged. I'm moving code around.
Especially important: please test whether your condition still holds after those patches are in.
The patch is at a wrong place: No matter what KAlarm does, it may not affect the lock screen. We need to ensure in the backend that this does not affect the greeter. Especially we need to ensure that we reset the focus to our greeter on X level.
And in addition: your patch sounds very dangerous for multi-monitor setups as now both windows constantly try to regain focus.