Desktop frozen after resume from system sleep if sceensaver is enabled
Consider the following scenario:
- desktop compositing is enabled
- xscreensaver is being used for locking and it's set to lock on system sleep event
- system is suspended by closing the laptop lid
After the system is resumed, I'm presented with the static frozen screenshot of my desktop instead of the screensaver. But typing my password and pressing "ENTER" causes the desktop to unfreeze, i.e. keyboard input went to xscreensaver, and xscreensaver unlocks the desktop. This means that the foreground window which grabbed keyboard input was in fact the xscreensaver lock screen, but for some reason it was not rendered properly on the screen (basically, xscreensaver lock screen was invisible).
If desktop compositing is disabled then everything works as expected, i.e. no desktop freeze after system resume, xscreensaver shows its lock screen as it's supposed to be. This is why I believe it might be an issue with the desktop composition.
Also, the issue is not limited only to the xscreensaver. I verified that there is the same issue if using gnome-screensaver.
And I guess it's the same issue as apps/xfce4-screensaver#1