[clutter] gdk: Disable cogl wayland event dispatching if requested
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] gdk: Disable cogl wayland event dispatching if requested
- Date: Thu, 5 Feb 2015 17:32:09 +0000 (UTC)
commit b192ad1300996d382d35a2665ef76c53dd1f3ff9
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Feb 5 17:56:37 2015 +0100
gdk: Disable cogl wayland event dispatching if requested
If gdk event retrieval has been disabled and gdk's backend is wayland
we must also disable cogl's wayland event dispatching otherwise cogl
will try to dispatch wayland events itself which blocks the main
loop.
https://bugzilla.gnome.org/show_bug.cgi?id=744058
clutter/gdk/clutter-backend-gdk.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter/gdk/clutter-backend-gdk.c b/clutter/gdk/clutter-backend-gdk.c
index e4e31cb..5b88d32 100644
--- a/clutter/gdk/clutter-backend-gdk.c
+++ b/clutter/gdk/clutter-backend-gdk.c
@@ -295,6 +295,7 @@ clutter_backend_gdk_get_renderer (ClutterBackend *backend,
/* Force a Wayland winsys */
cogl_renderer_set_winsys_id (renderer, COGL_WINSYS_ID_EGL_WAYLAND);
cogl_wayland_renderer_set_foreign_display (renderer, display);
+ cogl_wayland_renderer_set_event_dispatch_enabled (renderer, !disable_event_retrieval);
}
else
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]