[Wayland-bugs] [Bug 762618] wayland: Switching between fullscreen and unfullscreen using F11 in google-chrome causes gnome-shell to hang

mutter (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 2 20:43:47 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=762618

Rui Matos <tiagomatos at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebassi at gmail.com

--- Comment #10 from Rui Matos <tiagomatos at gmail.com> ---
(In reply to Jasper St. Pierre from comment #5)
> Input events need to be processed with a higher priority than protocol
> events. I don't know if it will fix this bug, but it's the correct thing to
> do.

Yeah, we're not doing that unfortunately. We have several event sources in our
main loop:

a) libinput's fd in clutter's evdev backend
b) mutter's X frontend fd (which actually is from gdk's x11 backend)
c) mutter's wayland frontend fd
d) cogl's kms winsys fd which process drm page flips
e) random glib timeouts
f) clutter's master clock

clutter's master clock uses G_PRIORITY_HIGH_IDLE + 50 and all others use
G_PRIORITY_DEFAULT. The problem is that our input event processing happens from
within clutter's master clock dispatch function which given its lower priority
means that it won't run as long as there are events on any other source which
explains the behavior reported here.

Note that event reading from libinput just queues events into the clutter stage
which wakes the main loop and thus causes the master clock source to dispatch
only indirectly.

One thing we could do is process clutter input events directly from the evdev
backend. But I'm not sure if clutter's internals would break due to that.
Emmanuele?

Another option is of course to leave this unfixed until we merge clutter?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160302/b7a184d0/attachment.html>


More information about the wayland-bugs mailing list