[gtk+] Don't decrement the init_ref_count towards -infinity
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't decrement the init_ref_count towards -infinity
- Date: Wed, 27 Mar 2013 01:48:18 +0000 (UTC)
commit 93e5d83a9da46a2c9a3b95a7a6f1296ecd49fdc9
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 26 21:27:21 2013 -0400
Don't decrement the init_ref_count towards -infinity
Once we are at zero, initialization is done.
gdk/wayland/gdkscreen-wayland.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c
index 5d17688..1acc81a 100644
--- a/gdk/wayland/gdkscreen-wayland.c
+++ b/gdk/wayland/gdkscreen-wayland.c
@@ -872,8 +872,10 @@ output_handle_geometry(void *data,
monitor->output_name = g_strdup (model);
/* Once we have the geometry event we know we have all events
- * from the wl_output and need no further init roundtrips. */
- display->init_ref_count--;
+ * from the wl_output and need no further init roundtrips.
+ */
+ if (display->init_ref_count > 0)
+ display->init_ref_count--;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]