Xorg – ignore first click event when resuming from Screen Blanking

screen-locktouch screenxorg

Is it possible to somehow configure xorg to ignore the first mouse click when screen blanking is enabled ??

The reason is I have a touch screen in an embedded arch linux application which remains active during screen blanking, and the first touch of a user should disable screen blanking and the click / touch event itself needs to be ignored as the user has no idea what button they are pressing since the screen is blank ?

Or any clever hack / work around methods ??

Best Answer

I know this a old question, but i had the same problem and finally solved it by using xssstart and modifying slock which is a screen locker. I called it clicklock

https://github.com/zpfvo/clicklock
https://github.com/unixdj/xssstart

xssstart runs a command as soon as the screensaver gets enabled and clicklock is just a black fullscreen window which closes after the first touch or key event.

So you have to run xssstart clicklock

Related Question