Hi Elv1313,

Thanks for the idea!
I'm afraid that 1px wibox won't receive "mouse::enter" signal if I move the
mouse too fast, but I will still give it a try and let you know.

- Eugene


On Wed, Aug 20, 2014 at 12:35 AM, Elv1313 . <[email protected]> wrote:

> 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
>

Reply via email to