[clutter-gtk] Add missing initilization in post_parse_hook
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] Add missing initilization in post_parse_hook
- Date: Fri, 4 Nov 2011 17:37:15 +0000 (UTC)
commit 0286c7caa965401810e4814e8f89e6576f7350ba
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Fri Nov 4 18:22:49 2011 +0100
Add missing initilization in post_parse_hook
Without those two added function calls, the input is broken and the
offscreen widget are not transparent (but black background)
https://bugzilla.gnome.org/show_bug.cgi?id=663419
clutter-gtk/gtk-clutter-util.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-util.c b/clutter-gtk/gtk-clutter-util.c
index ec303ec..be9f4ee 100644
--- a/clutter-gtk/gtk-clutter-util.c
+++ b/clutter-gtk/gtk-clutter-util.c
@@ -50,6 +50,15 @@ post_parse_hook (GOptionContext *context,
{
gtk_clutter_is_initialized = TRUE;
+ gdk_disable_multidevice ();
+
+#if defined(HAVE_CLUTTER_GTK_X11)
+# if CLUTTER_CHECK_VERSION (1, 1, 5)
+ /* enable ARGB visuals by default for Clutter */
+ clutter_x11_set_use_argb_visual (TRUE);
+# endif
+#endif
+
#if defined(GDK_WINDOWING_X11)
/* share the X11 Display with GTK+ */
clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]