Closed mrr0b0t-0x1 closed 3 years ago
I wouldn't say it was weird. I'd expect this would happen now you mention it but nobody else has ever noticed it. I created a branch called "session" which adds logic to check if the user session is locked and inhibit actions until it becomes unlocked. Please try that branch and see if it works for you.
BTW, I should comment on your remarks at the end of your post. Note it has nothing to do with the _internal
command specifically. All gestures are always being executed by libinput-gestures
, regardless of whether your session is locked or not. I suspect that your DE is simply ignoring keyboard shortcuts sent by xdotool
when the DE session is locked because they are just like a user executed those shortcuts directly. However _internal
works differently. Ii invokes wmctrl
to send commands to the DE via an alternate path and it seems that path is still respected by the DE even when the session is locked. I guess that could be argued to be a bug in the DE.
There are plenty of commands users can configure which have nothing to do with any DE so libinput-gestures
probably should not execute anything when locked, hence my change here.
I created a branch called "session" which adds logic to check if the user session is locked and inhibit actions until it becomes unlocked.
This fixes the issue, now it works as expected. Thanks!
I guess that could be argued to be a bug in the DE.
I am thinking of filing a bug report since this could be a major issue, I'll do some more testing to confirm that I am able to reproduce the issue regardless of my system config before filing the report.
I merged this change to master and made a new release 2.61.
Hey, I recently noticed this weird issue when the screen is locked. I have setup left swipe to switch to the previous workspace and right swipe to switch to the next workspace. FYI, I am on Manjaro KDE and use Latte dock.
Issue
So when the screen is locked, and if I swipe left or right, the workspace switches and some parts of the screen are visible through the lockscreen such as the panel and dock of Latte Dock is visible, which should not be the case, if the screen is locked no command should execute without unlocking it.
To give you a better idea, I have recorded a small video of the issue, https://imgur.com/a/QKJhNl5
What I have tried so far -
The issue persists after performing each of the above steps.
Debug commands -
Interestingly enough, this only happens with the gestures that are setup with the
_internal
command. I have only two gestures that use this command,swipe left
andswipe right
. This doesn't happen on any of the gestures that use other key combinations such asswipe down
andswipe up
. All the gestures work just fine when screen is unlocked.So I am suspecting that the issue is with the
_internal
command, it is somehow getting executed bypassing the lockscreen restrictions, hence performing the gesture action.Please take a look at the issue, meanwhile I will try reproducing the issue by booting from a live USB stick to see if it exists on a fresh system too.