i3 / i3lock

improved screen locker
https://i3wm.org/i3lock
BSD 3-Clause "New" or "Revised" License
921 stars 404 forks source link

Lock fails when invoking dmenu after i3lock. #189

Closed fristonio closed 6 years ago

fristonio commented 6 years ago

Steps to reproduce:

i3lock will show Locking but the lock eventually fails.

Airblader commented 6 years ago

35

jannikw commented 6 years ago

I am running i3lock version 2.10 (2017-11-25), which i assume contains the fixes for #35. The problem as described by @fristonio seems to persist... :(

Airblader commented 6 years ago

The merged "fix" is only an attempt to make it work. It won't work in all cases. Making it reliable simply isn't possible in X11, so just wait while it says "Locking..." before leaving your machine.

jannikw commented 6 years ago

Ah too bad.

so just wait while it says "Locking..." before leaving your machine.

This only sucks when trying to lock and suspend when the laptop's lid is closed. ;)

Airblader commented 6 years ago

Then just make sure to close dmenu and other »similar« windows (ie, context menus etc.) :-)

jannikw commented 6 years ago

I found workaround which I can live with: Combining i3lock and physlock by executing i3lock || physlock -d on suspend ensures that one of the two locks the device. That's better than doing i3lock || shutdown now to make sure the device is not left unlocked after resuming.