Re: [PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-09-01 Thread Philipp Brüschweiler
The consensus seems to be that we need relative/raw motion and that it should be orthogonal to clipping/grabbing. I have now tried my hand at implementing relative motion by introducing a wl_relative_pointer (no raw motion yet, but it should not be hard to extend the implementation analogously). Th

Re: [PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-08-30 Thread Vincent Povirk
> wl_pointer::enter event carries x,y, so even for relative pointer > mode, it can tell at which point on the surface the pointer comes in. > After that, the application can accumulate relative events to know the > position inside the surface. > > Except that won't really work. I believe the relati

Re: [PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-08-30 Thread Pekka Paalanen
On Wed, 29 Aug 2012 20:35:34 -0500 Vincent Povirk wrote: > > Yup, good points here. I think we could reuse the wl_pointer > > interface, but just send relative motion in the motion event and it > > should go throught the wl_seat capability feature as Daniel describes. > > With this approach, is

Re: [PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-08-29 Thread Vincent Povirk
> Yup, good points here. I think we could reuse the wl_pointer > interface, but just send relative motion in the motion event and it > should go throught the wl_seat capability feature as Daniel describes. With this approach, is it going to be possible to know both the relative motion for an even

Re: [PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-08-29 Thread Kristian Høgsberg
On Mon, Aug 27, 2012 at 01:45:17PM -0700, Daniel Stone wrote: > Hi, > > On 27 August 2012 11:55, Philipp Brüschweiler wrote: > > This request can be used to grab the pointer of a specified seat. A > > pointer grabbed in this way will be made invisible and won't send any > > more motion events. In

Re: [PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-08-27 Thread Pekka Paalanen
On Mon, 27 Aug 2012 13:45:17 -0700 Daniel Stone wrote: > Hi, > > On 27 August 2012 11:55, Philipp Brüschweiler wrote: > > This request can be used to grab the pointer of a specified seat. A > > pointer grabbed in this way will be made invisible and won't send any > > more motion events. Instead

Re: [PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-08-27 Thread Daniel Stone
Hi, On 27 August 2012 11:55, Philipp Brüschweiler wrote: > This request can be used to grab the pointer of a specified seat. A > pointer grabbed in this way will be made invisible and won't send any > more motion events. Instead it reports relative motion using the motion > event on the returned

[PATCH wayland] Add a relative_grab request to the wl_shell_surface interface

2012-08-27 Thread Philipp Brüschweiler
This request can be used to grab the pointer of a specified seat. A pointer grabbed in this way will be made invisible and won't send any more motion events. Instead it reports relative motion using the motion event on the returned object. A grab can be broken by the application by destroying the