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

gtk+ (bugzilla.gnome.org) bugzilla at gnome.org
Sun Jun 8 14:29:55 PDT 2014


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

           Summary: gtk3-demo button box works badly with a touch screen
                    under wayland
    Classification: Platform
           Product: gtk+
           Version: 3.13.x
        OS/Version: Mac OS
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
        AssignedTo: gtk-bugs at gtk.org
        ReportedBy: sjoerd at luon.net
         QAContact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     GNOME version: ---


To reproduce, simply open up the gtk button demo under weston (using gtk+
master + my patch from #731371). Two issues occur:
  0) If pointer focus is outside the window,  no buttons can be pressed using
touch.
  1) If the pointer focus is in the window, pressing buttons behaves irretatic,
typically working on second press

For the first issue, the problem is likely due to no _ENTER_NOTIFY events being
triggered under wayland when touching a window. Unlike X where the pointer &
touch devices are more tightly coupled, causing the pointer to end a window
upon first touch. I've not investigated this further thusfar.

The second issue is somewhat ellusive. It seems that on X when hitting the
screen one first gets an (emulated) Motion event followed by the Touch begin,
while on Wayland one only gets the Touch begin..  

This event sequence means that on X, the emulated pointer event causes
pointer_info->window_under_pointer in gdkwindow.c to get set to the window
under the touch. Which in turn means that when the TouchBegin is received in X
the synthisized crossing event will succeed (gdkwindow.c line 8805). While
under wayland, when the window_under_pointer entry is still set to the old
window causing the same event synthesizing not to happen.

-- 
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