[Wayland-bugs] [Bug 703892] If the compositor goes away the client can spin forever
gtk+ (bugzilla.gnome.org)
bugzilla at gnome.org
Tue Jul 9 16:01:53 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=703892
gtk+ | wayland | unspecified
Kristian Høgsberg <krh> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |krh at bitplanet.net
Resolution| |FIXED
--- Comment #2 from Kristian Høgsberg <krh at bitplanet.net> 2013-07-09 23:01:49 UTC ---
Patchs looks good, committed. It's a valid fix and solves the problem, but the
regression was this:
commit 99b78fdd7f21539a288bfe846542b633756ce163
Author: Kristian Høgsberg <krh at bitplanet.net>
Date: Tue Jul 9 18:35:06 2013 -0400
wayland: Don't clear revents until we've checked for G_IO_HUP
https://bugzilla.gnome.org/show_bug.cgi?id=703892
diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c
index cb335bd..4bcae9b 100644
--- a/gdk/wayland/gdkeventsource.c
+++ b/gdk/wayland/gdkeventsource.c
@@ -150,12 +150,12 @@ _gdk_wayland_display_queue_events (GdkDisplay *display)
display_wayland = GDK_WAYLAND_DISPLAY (display);
source = (GdkWaylandEventSource *) display_wayland->event_source;
+
if (source->pfd.revents & G_IO_IN)
- {
- wl_display_dispatch(display_wayland->wl_display);
- source->pfd.revents = 0;
- }
+ wl_display_dispatch (display_wayland->wl_display);
if (source->pfd.revents & (G_IO_ERR | G_IO_HUP))
g_error ("Lost connection to wayland compositor");
+
+ source->pfd.revents = 0;
}
which I also committed.
--
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