meskarune / i3lock-fancy

i3lock script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text
MIT License
1.52k stars 184 forks source link

Windows come to foreground when HDMI is unplugged/plugged #188

Closed Mohammadreza99A closed 2 years ago

Mohammadreza99A commented 2 years ago

I use Awesome WM and Arch Linux with my laptop. I have two type of workstations configured in my laptop. Docked and mobile. When HDMI cable is not connected we are in mobile mode and use laptop's screen. When HDMI is connected we go to docked mode and turn off laptop's display and use external display.

If my laptop is locked in mobile mode and than I plug the HDMI cable, we go to docked mode (because of the daemon script) but the problem is that all windows come to foreground and lock screen goes to background (behind all windows). The same thing happens if we go from docked to mobile while the screen is locked. Is there anyway for fix this?

AladW commented 2 years ago

This sounds like a problem with your window manager. I suggest you ask in your distribution's support channels.

johnchristopher commented 10 months ago

Hi,

I ran into the same problem. So I swapped i3lock with slock and slock does cover the screen that is switched on when resuming the laptop. So either it's an i3lock problem or it's an i3lock/awesome combination problem.

I also tested this:

Same sequence bu starting with monitor off and laptop screen on exhibits same behaviour (visible frozen desktop and keys can be entered to unlock).

With slock screens are always covered with the locker, whatever the starting conditions are.