[Wayland-bugs] [Bug 55325] New: window menu mouse handling not working properly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 25 08:52:33 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=55325

          Priority: medium
            Bug ID: 55325
          Assignee: wayland-bugs at lists.freedesktop.org
           Summary: window menu mouse handling not working properly
          Severity: major
    Classification: Unclassified
                OS: Linux (All)
          Reporter: pvuorela at gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: weston
           Product: Wayland

Popup menu from window top bar follows mouse badly. Works ok on top of the
popup, but on top of the parent window it's getting events with parent window
coordinates. This can be seen as offset on the selected item by opening the
menu at the bottom of the top bar and moving mouse on parent window. Outside
application windows no events are received.


There are also some unclarities on the popup documentation and implementation.

Request wl_shell_surface:set_popup defined as:
--8<--
Popup surfaces.  Will switch an implicit grab into owner-events mode, and grab
will continue after the implicit grab ends (button released).  Once the
implicit grab is over, the popup grab continues until the window is destroyed
or a mouse button is pressed in any other clients window.  A click in any of
the clients surfaces is reported as normal, however, clicks in other clients
surfaces will be discarded and trigger the callback.
--8<-

"Owner-events mode" is not defined and "the callback" could explicitly mention
popup_done.

Weston implementation doesn't appear to actually do the grab in set_popup
implementation but on shell_map_popup() for which I'm not sure if it's doing
the right thing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20120925/97b8382f/attachment.html>


More information about the Wayland-bugs mailing list