[Wayland-bugs] [Bug 731380] gtk3-demo button box works badly with a touch screen under wayland

gtk+ (bugzilla.gnome.org) bugzilla at gnome.org
Tue Aug 26 04:52:40 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=731380
  gtk+ | Backend: Wayland | 3.13.x

--- Comment #12 from Carlos Garnacho <carlosg at gnome.org> 2014-08-26 11:52:33 UTC ---
(In reply to comment #10)
> Review of attachment 284197 [details]:
> 
> ::: gtk/gtkbutton.c
> @@ +635,3 @@
> +  gtk_gesture_get_point (gesture, sequence, &x, &y);
> +
> +  in_button = (x >= 0 && y >= 0 && x < allocation.width && y <
> allocation.height);
> 
> Shouldn't allocation.x/y be used here ?

no :), gtk_gesture_get_point() always returns widget-based coordinates,
regardless of event/widget windows.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Wayland-bugs mailing list