Re: [PATCH weston 5/5] shell: override the default pointer grab interface

2013-11-15 Thread Giulio Camuffo
I agree. I wondered indeed if it made more sense to remove the default implementations in input.c and mandate all the shells to have a default grab. I'm not sure how a flag would work given it not only does need to not pick a surface, but also pick another one. A "don't pick and pick its private_co

Re: [PATCH weston 5/5] shell: override the default pointer grab interface

2013-11-15 Thread Kristian Høgsberg
On Thu, Nov 14, 2013 at 11:42:54PM +0100, Giulio Camuffo wrote: > when a fullscreen surface hides the cursor, such as mpv, we must > make sure that the cursor gets hidden also when it is over the > underlying black surface. so check if the surface under the pointer > is a black surface and focus on

[PATCH weston 5/5] shell: override the default pointer grab interface

2013-11-14 Thread Giulio Camuffo
when a fullscreen surface hides the cursor, such as mpv, we must make sure that the cursor gets hidden also when it is over the underlying black surface. so check if the surface under the pointer is a black surface and focus on its parent surface instead. this results in sending pointer coordinates