← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 373367] Re: Pointer goes offscreen on non-rectangular dual-head

 

Slightly reworked nZain's "XCreateMouseVoid.c": no more 'modes', just
'edge resistance' all around; also fixes the slightly annoying mouse
jumping.

For best results create a window slightly larger than 'void', like this:

+------------------------+------------------------+
|        screen1          |        screen2          |
|                              |                              |
|                              +------------------------+-------------+
+------------------------+            XCreateMouseVoid       |
                               |                                                |
                               +---------------------------------------+

This should disallow mouse 'sliding under' the void. You can specify
negative coordinates to do this for top- and/or left-positioned voids.

** Attachment added: "improved program to prevent the mouse from entering the void."
   https://bugs.launchpad.net/ubuntu/+source/libxrandr/+bug/373367/+attachment/1716224/+files/XCreateMouseVoid.c

-- 
Pointer goes offscreen on non-rectangular dual-head
https://bugs.launchpad.net/bugs/373367
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to libxrandr in ubuntu.