Re: Questions on pointer barrier behaviour

2019-09-10 Thread Peter Hutterer
On Tue, Sep 10, 2019 at 09:49:51PM +0200, Michael Weiser wrote: > Hello, > > I've written a small X client that detects when the pointer hits a > screen edge in order to trigger actions based on where the edge was hit > - the classic hot corner use case. The trigger for doing this yet again > was

Re: Questions on pointer barrier behaviour

2019-09-10 Thread The Rasterman
On Tue, 10 Sep 2019 21:49:51 +0200 Michael Weiser said: > Hello, > > I've written a small X client that detects when the pointer hits a > screen edge in order to trigger actions based on where the edge was hit > - the classic hot corner use case. The trigger for doing this yet again > was that

Questions on pointer barrier behaviour

2019-09-10 Thread Michael Weiser
Hello, I've written a small X client that detects when the pointer hits a screen edge in order to trigger actions based on where the edge was hit - the classic hot corner use case. The trigger for doing this yet again was that all the tools I looked at either polled the pointer position or

Pointer Barrier

2015-07-06 Thread - -
Hi allI am new here and hopefully you can help me with my problem. Ive send this mail once, not sure if it got lost or no one could help me so I try again :D. I am trying to useXFixesCreatePointerBarrier and XFixesDestroyPointerBarrierCreating works and I can see how the barrier works. To

Pointer Barrier

2015-06-16 Thread - -
Hi allI am new here and hopefully you can help me with my problem. I am trying to useXFixesCreatePointerBarrier and XFixesDestroyPointerBarrierCreating works and I can see how the barrier works. To release the barrier I can catch the events usingXI_BarrierHitXI_BarrierLeavewhich I did and after

Re: [PULL updated] pointer barrier events/releases (XI2.3)

2012-12-19 Thread Keith Packard
Peter Hutterer peter.hutte...@who-t.net writes: Jasper St. Pierre (14): cursor: Move pointer barrier code over to XI barriers: Don't loop over the server to destroy a barrier barriers: Switch to an explicit hook for barrier constrainment barriers: Switch to finding

[PULL updated] pointer barrier events/releases (XI2.3)

2012-12-17 Thread Peter Hutterer
:28:02 +1000) Jasper St. Pierre (14): cursor: Move pointer barrier code over to XI barriers: Don't loop over the server to destroy a barrier barriers: Switch to an explicit hook for barrier constrainment

Re: [PATCH 00/29] Pointer barrier events and barrier releases

2012-12-16 Thread Jasper St. Pierre
n Wed, Dec 12, 2012 at 2:18 AM, Peter Hutterer peter.hutte...@who-t.netwrote: This is the server-side for the pointer-barrier patches, proposed as XI 2.3. It adds events for pointer barriers (when the pointer hits vs leaves the arrier) and the ability to release a pointer across. I hereby

[PULL] pointer barrier events/releases (XI2.3)

2012-12-16 Thread Peter Hutterer
to 1fe6c2ef09bd7422e20ef7f7f8d38f2d773d842b: Xi: if a MD is removed, send a barrier leave event (if applicable) (2012-12-17 15:04:11 +1000) Jasper St. Pierre (14): cursor: Move pointer barrier code over to XI barriers: Don't loop over

[PATCH 0/3] per-device pointer barrier event handling

2012-12-12 Thread Peter Hutterer
These are the promised fixes for pointer-barrier events if there is more than master pointer, plus a fix to avoid accessing recently-freed memory (if a event is sent after a barrier is destroyed) Yesterday's series plus these three should conclude the pointer barrier event/release support

[PATCH 00/29] Pointer barrier events and barrier releases

2012-12-11 Thread Peter Hutterer
This is the server-side for the pointer-barrier patches, proposed as XI 2.3. It adds events for pointer barriers (when the pointer hits vs leaves the arrier) and the ability to release a pointer across. I hereby propose this for the 1.14 release. Trees for testing available from: git

[PATCH 01/29] cursor: Move pointer barrier code over to XI

2012-12-11 Thread Peter Hutterer
the existing XI infrastructure. For now, just move a bunch of code over, rename some things, and initialize the new structures, but still consider it a separate codebase. Pointer barrier requests are still handled by XFixes, so this is a weird intermediate state. It's unknown whether we'll add explicit

[PATCH 06/29] Add support for XI2.3: Pointer barrier events and releases.

2012-12-11 Thread Peter Hutterer
From: Jasper St. Pierre jstpie...@mecheye.net This adds support for clients that would like to get a notification every time a barrier is hit, and allows clients to temporarily release a barrier so that pointers can go through them, without having to destroy and recreate barriers. Based on work

[PATCH 17/29] Pass the event list through to the pointer barrier code to return it

2012-12-11 Thread Peter Hutterer
Instead of having the pointer barrier code enqueue events separately from GetPointerEvents, pass the event list through and let it add to it. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Xi/xibarriers.c | 15 --- dix/getevents.c | 15 +++ include/input.h

[PATCH 19/29] dix: skip delivery if it's not the right pointer barrier client

2012-12-11 Thread Peter Hutterer
Only deliver to the client that created the barrier, not to other clients. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- dix/events.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/dix/events.c b/dix/events.c index 3282ef8..49b8bc5 100644 ---

[PATCH inputproto] Add pointer barrier events

2012-12-06 Thread Peter Hutterer
barrier events added - v2.2, March 2012: Multitouch support added - v2.1, December 2011: new raw event behaviour, smooth scrolling support added @@ -57,6 +58,10 @@ Changes in version 2.2 - Multitouch support added +Changes in version 2.3 +-- + +- Pointer barrier events

[RFC/PATCH] Pointer barrier events (XI 2.3)

2012-12-06 Thread Peter Hutterer
This is the protocol and client-side for the proposed XI 2.3 extension for pointer barrier events and barrier release requests. This feature adds two things: - if a pointer hits a barrier, events are sent to selected clients - a client may release the pointer, allowing it to pass through

[PATCH libXi] Add support for pointer barrier events

2012-12-06 Thread Peter Hutterer
100644 index 000..4fa48fe --- /dev/null +++ b/man/XIBarrierReleasePointer.txt @@ -0,0 +1,76 @@ +XIBARRIERRELEASEPOINTER(libmansuffix) += + +NAME + + + XIBarrierReleasePointer, XIBarrierReleasePointers - allow pointer movement across a pointer barrier

Re: [PATCH 3/5] Add support for XI2.3: Pointer barrier notify events

2012-11-22 Thread Peter Hutterer
On Tue, Nov 20, 2012 at 02:50:43PM -0500, Jasper St. Pierre wrote: From: Jasper St. Pierre jstpie...@mecheye.net This adds support for clients that would like to get a notification every time a barrier is released, along with a way to temporarily release a barrier after it has been hit.

[PATCH 2/5] cursor: Move pointer barrier code over to XI

2012-11-20 Thread Jasper St. Pierre
the existing XI infrastructure. For now, just move a bunch of code over, rename some things, and initialize the new structures, but still consider it a separate codebase. Pointer barrier requests are still handled by XFixes, so this is a weird intermediate state. It's unknown whether we'll add explicit

Re: [PATCH 3/5] cursor: Clean up pointer barrier creation code a tiny bit

2012-11-04 Thread Peter Hutterer
On Sat, Nov 03, 2012 at 06:39:34PM -0400, Jasper St. Pierre wrote: From: Jasper St. Pierre jstpie...@mecheye.net This will make it much simpler when we add more error paths to the code that constructs pointer barrier clients. Signed-off-by: Jasper St. Pierre jstpie...@mecheye.net

[PATCH 3/5] cursor: Clean up pointer barrier creation code a tiny bit

2012-11-03 Thread Jasper St. Pierre
From: Jasper St. Pierre jstpie...@mecheye.net This will make it much simpler when we add more error paths to the code that constructs pointer barrier clients. Signed-off-by: Jasper St. Pierre jstpie...@mecheye.net --- xfixes/cursor.c | 54

[PATCH 3/5] cursor: Clean up pointer barrier creation code a tiny bit

2012-11-03 Thread Jasper St. Pierre
From: Jasper St. Pierre jstpie...@mecheye.net This will make it much simpler when we add more error paths to the code that constructs pointer barrier clients. Signed-off-by: Jasper St. Pierre jstpie...@mecheye.net --- xfixes/cursor.c | 42 -- 1 file

[PATCH fixesproto] fixesproto v6: Pointer barrier thresholds

2012-07-29 Thread Christopher James Halse Rogers
: INT16 + directions: CARD32 + velocity: CARD32 + devices:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated

Re: [PATCH x11proto-fixes (v2)] fixesproto v6: Pointer barrier thresholds

2012-06-12 Thread Peter Hutterer
+ velocity: CARD32 + devices:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated with the given drawable. This + has identical semantics to CreatePointerBarrier

[PATCH x11proto-fixes (v2)] fixesproto v6: Pointer barrier thresholds

2012-05-21 Thread Christopher James Halse Rogers
:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated with the given drawable. This + has identical semantics to CreatePointerBarrier, except that the + barrier created will not initially block the pointer

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-05-03 Thread Peter Hutterer
:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated with the given drawable. This + has identical semantics to CreatePointerBarrier, except that the + barrier created will not block the pointer if the threshold

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-05-03 Thread Christopher James Halse Rogers
On Thu, 2012-05-03 at 16:35 +1000, Peter Hutterer wrote: On Thu, May 03, 2012 at 12:40:58PM +1000, Christopher James Halse Rogers wrote: On Thu, 2012-05-03 at 11:05 +1000, Peter Hutterer wrote: On Tue, Apr 03, 2012 at 01:42:38PM +1000, Christopher James Halse Rogers wrote: ---

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-05-03 Thread Peter Hutterer
On Fri, May 04, 2012 at 09:46:47AM +1000, Christopher James Halse Rogers wrote: On Thu, 2012-05-03 at 16:35 +1000, Peter Hutterer wrote: On Thu, May 03, 2012 at 12:40:58PM +1000, Christopher James Halse Rogers wrote: On Thu, 2012-05-03 at 11:05 +1000, Peter Hutterer wrote: On Tue, Apr

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-05-02 Thread Peter Hutterer
+ devices:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated with the given drawable. This + has identical semantics to CreatePointerBarrier, except that the + barrier created

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-05-02 Thread Peter Hutterer
: DRAWABLE + x1, y2, x2, y2: INT16 + directions: CARD32 + velocity: CARD32 + devices:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-05-02 Thread Christopher James Halse Rogers
+ directions: CARD32 + velocity: CARD32 + devices:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated with the given drawable

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-05-02 Thread Christopher James Halse Rogers
+ directions: CARD32 + velocity: CARD32 + devices:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated with the given drawable. This + has

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-04-09 Thread Christopher James Halse Rogers
On Tue, 2012-04-03 at 13:42 +1000, Christopher James Halse Rogers wrote: --- I've got a corresponding xserver patch, but it needs updating for the Great Reindent of '12. Might as well get support for the protocol additions before fixing it up. A slightly different variant of this (it's

Re: [PATCH] fixesproto v6: Pointer barrier thresholds

2012-04-09 Thread Christopher James Halse Rogers
On Tue, 2012-04-03 at 13:42 +1000, Christopher James Halse Rogers wrote: --- I've got a corresponding xserver patch, but it needs updating for the Great Reindent of '12. Might as well get support for the protocol additions before fixing it up. A slightly different variant of this (it's

[PATCH] fixesproto v6: Pointer barrier thresholds

2012-04-02 Thread Christopher James Halse Rogers
+ devices:LISTofDEVICEID + + Creates a pointer barrier along the line specified by the given + coordinates on the screen associated with the given drawable. This + has identical semantics to CreatePointerBarrier, except that the + barrier created

[RFC PATCH v2] fixesproto v6: Pointer barrier improvements.

2012-01-26 Thread christopher . halse . rogers
From: Christopher James Halse Rogers r...@ubuntu.com Adds a velocity-gated pointer barrier, events to notify a client when barriers are hit, and a mechanism for clients to temporarily allow movement through a barrier. Signed-off-by: Christopher James Halse Rogers christopher.halse.rog

Re: [RFC PATCH v2] fixesproto v6: Pointer barrier improvements.

2012-01-26 Thread Christopher James Halse Rogers
Halse Rogers r...@ubuntu.com Wed, 25 Jan 2012 14:42:06 +1100 + +libxfixes (1:5.0-6~hacking1) precise; urgency=low + + * More and different thresholding + + -- Christopher James Halse Rogers r...@ubuntu.com Wed, 25 Jan 2012 11:56:16 +1100 + +libxfixes (1:5.0-5) precise; urgency=low + + * Pointer

[RFC PATCH v3] fixesproto v6: Pointer barrier improvements.

2012-01-26 Thread christopher . halse . rogers
From: Christopher James Halse Rogers christopher.halse.rog...@canonical.com Adds a velocity-gated pointer barrier, events to notify a client when barriers are hit, and a mechanism for clients to temporarily allow movement through a barrier. Signed-off-by: Christopher James Halse Rogers

[PATCH] fixesproto v6: Pointer barrier thresholds

2012-01-18 Thread christopher . halse . rogers
runs into roundtrip latency, and there's some useful information that the server has that's not easily available to a client. This is the second go at a protocol. The first simply added a velocity-gated pointer barrier request. In testing this suboptimal behaviour - getting the pointer past