#1140132 xfwm4: unresponsive keyboard after screensaver

Package:
xfwm4
Source:
xfwm4
Description:
window manager of the Xfce project
Submitter:
IOhannes m zmölnig
Date:
2026-06-19 09:25:01 UTC
Severity:
normal
Tags:
#1140132#5
Date:
2026-06-16 09:25:45 UTC
From:
To:
Dear Maintainer,

I've been using xfce4 for decades, and I'm loving it. thanks for
packaging the eco-system.

having said that, I'm experiencing a problem with xfwm4 (on multiple
machines) that makes it rather hard to use: whenever the screensaver
kicks in (e.g. after a suspend/resume cycle on my laptop; or just leaving
the desktop on for a prolonged time), and i then cancel the screen-saver (by
logging in again), no window has keyboard focus, and I cannot type.

i have to move the mouse first to another window, after which the
keyboard works again.

on my dual-screen desktop computer, this is not a big problem, as I
usually have multiple windows open and can just change move the mouse to
one of them.
however, on my small-screen laptop this becomes serious, as I often run
applications in full-screen mode.
i found the hard way, that a lot of my applications, while supporting
fullscreen, allow me to exit fullscreen only via a special *key* (ESC,
F11, whatever), and *not* via the mouse (*some* applications have a
right-click context-menu that allows you to exit fullscreen; but some
don't)
if the keyboard does not work, this basically means that you are locked
in the current fullscreen window and cannot type.

now, the problem seems to be, that I have setup the following focus model
(which in general I like very much):
- focus follows mouse
- delay before window receives focus: shortest possible
- do *not* automatically raise focused windows

so my understanding of the issue is:
0. "focus follows mouse" means, that the focus is handed over to a
   window when the cursor *enters* that window.
1. whatever (fullscreen) window I'm currently working on has focus
2. when the system suspends or otherwise activates the screensaver, the
   screensaver receives focus.
3. when i want to exit the screensaver, the login-window receives focus
   (so I can properly type my credentials)
4. the screensaver deactivates and closes all its windows and the
   fullscreen window becomes visible again.
5. however, since the window is fullscreen, the cursor does not "enter"
   the window, so no "transfer focus" event is triggered.
6. no window has focus, so nothing receives keyboard events
   (probably the root window does have focus, but i can't even switch desktops)


i would expect that the original focus is restored when the screensaver
exits.

i'm still running X11, using 'lightdm' as the display-manager and
'light-locker' as the screensaver.

#1140132#10
Date:
2026-06-17 18:30:21 UTC
From:
To:
control: tag -1 moreinfo
Hi,

light-locker is pretty much unmaintained and will be removed from Debian at
some point, we're not really using it anymore and I need to change the
recommends from xfce4-session to xfce4-screensaver.

Could you try to swap them and test if the same thing happens or not?

Thanks in advance.

Regards,

#1140132#17
Date:
2026-06-19 08:07:02 UTC
From:
To:
indeed uninstalling light-locker and restarting lightdm
(xfce4-screensaver was already installed) seems to have fixed the issue
for me.

accordingly i've reassigned this bug to light-locker, so it will be
closed either explicitly or on package removal.

mfgluzg
IOhannes

#1140132#26
Date:
2026-06-19 09:24:11 UTC
From:
To:
Thanks for the test. light-locker design was elegant (moving the unlocking
process to a different vt etc.) but had too many issues in the end...

Regards,