← Back to team overview

ubuntu-x-swat team mailing list archive

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

 

@Jeffery To:

I don't know enough about X programming to fix the menu issue (and my
limited knowledge suggests that it's not possible for an application
like XCreateMouseVoid - it really does not receive events when other
window does "active mouse grab"; one would have to use XTest, I imagine
(and I remember seeing an app doing exactly this to "fix" the same issue
that's being discussed here (but it was KDE-dependent, so I was too lazy
to try it))).

As for the 'mouse stuck at the edge' problem: try creating a largish
void with the top-left corner far away in the negative coordinates; for
best results - with the _center_ in the negative coordinates; i.e. if
your invisible zone is from 0,0 to 1024,400 - do smth like

XCreateMouseVoid -1100 -500 2124 900

That should make it impossible for the mouse to enter the zone where
it's being "pushed away" from the screen (usuccessfully); just '-1 -1'
isn't enough as the first event seen by XCreateMouseVoid may be well
inside the window due to "mouse acceleration" and/or system load.

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