[gtk+] mir: enable csd
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mir: enable csd
- Date: Thu, 6 Nov 2014 21:19:07 +0000 (UTC)
commit 063f79b5946198eb5efec0133627a12a75d154a7
Author: William Hua <william attente ca>
Date: Mon Nov 3 16:31:07 2014 -0500
mir: enable csd
gtk/gtkwindow.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 76b59de..8c07e21 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -79,6 +79,10 @@
#include "broadway/gdkbroadway.h"
#endif
+#ifdef GDK_WINDOWING_MIR
+#include "mir/gdkmir.h"
+#endif
+
/**
* SECTION:gtkwindow
* @title: GtkWindow
@@ -5708,6 +5712,11 @@ gtk_window_should_use_csd (GtkWindow *window)
return TRUE;
#endif
+#ifdef GDK_WINDOWING_MIR
+ if (GDK_IS_MIR_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
+ return TRUE;
+#endif
+
csd_env = g_getenv ("GTK_CSD");
return (g_strcmp0 (csd_env, "1") == 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]