<div dir="ltr">Ok, it's not a big deal.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/9 Kristian Høgsberg <span dir="ltr"><<a href="mailto:hoegsberg@gmail.com" target="_blank">hoegsberg@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Jul 09, 2013 at 02:21:24PM +0200, Giulio Camuffo wrote:<br>
> currently defult_grab_focus does not repick a surface if a mouse<br>
> button is pressed. change it so it does repick if there is no<br>
> current focus surface, like when the focus gets destroyed, so the<br>
> cursor does not disappear.<br>
<br>
</div>Ah, yes, the disappearing is unfortunate, but also a regression.  We<br>
used to keep the cursor image even after the client died, so you would<br>
be stuck with the last cursor from the client until you release the<br>
mouse button.  The intended behavior is that we don't repick until all<br>
buttons are released, even when the focus goes away.  This is to avoid<br>
entering a surface with buttons down.  I don't have a good fix for<br>
this right now, but I prefer to keep the protocol semantics as they<br>
are and live with the cursor artifact for now.<br>
<br>
Kristian<br>
<div class="im"><br>
> ---<br>
>  src/input.c | 2 +-<br>
>  1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/src/input.c b/src/input.c<br>
> index a7a37e5..76ce81a 100644<br>
> --- a/src/input.c<br>
> +++ b/src/input.c<br>
> @@ -102,7 +102,7 @@ default_grab_focus(struct weston_pointer_grab *grab)<br>
>       struct weston_surface *surface;<br>
>       wl_fixed_t sx, sy;<br>
><br>
> -     if (pointer->button_count > 0)<br>
> +     if (pointer->button_count > 0 && pointer->focus)<br>
>               return;<br>
><br>
>       surface = weston_compositor_pick_surface(pointer->seat->compositor,<br>
> --<br>
> 1.8.3.2<br>
><br>
</div>> _______________________________________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div><br></div>