Hello, One cheap way that come to my mind right now is adding a 1px(+) invisible wibox (require compositing, or make it black) at the edge of the second screen, then use the mouse::enter signal to move the mouse back to the first screen. This is better than having a mouse watcher at all time as you don't care about all the events from the second screen. See the "mouse" API about how to set the cursor location. You can see an example of using a 1px wibox for screen edge events (in this case a dock) here:
https://github.com/Elv13/awesome-configs/blob/master/widgets/dock.lua#L293 There is a lot of ways of doing this, but this one should work. On 19 August 2014 02:21, Evgeny Pakhomov <[email protected]> wrote: > Hi, > > Does anyone know how I can bind mouse pointer to a particular screen, so it > won't escape to another screen when I accidentally move the mouse? > > Thanks, > Eugene -- To unsubscribe, send mail to [email protected].
