[gnome-initial-setup/shell/4765: 238/362] Don't allow to move the FBE window at all



commit 837e6c3fa9862573e904e09cb83fc9f57bfd6948
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Mon Sep 22 14:58:44 2014 +0100

    Don't allow to move the FBE window at all
    
    [endlessm/eos-shell#3761]

 gnome-initial-setup/gis-window.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/gis-window.c b/gnome-initial-setup/gis-window.c
index bbb0930..959fc3a 100644
--- a/gnome-initial-setup/gis-window.c
+++ b/gnome-initial-setup/gis-window.c
@@ -93,8 +93,13 @@ gis_window_realize (GtkWidget *widget)
   GTK_WIDGET_CLASS (gis_window_parent_class)->realize (widget);
 
   window = gtk_widget_get_window (widget);
-  /* disable WM functions except move */
-  gdk_window_set_functions (window, GDK_FUNC_MOVE);
+  /* disable all the WM functions */
+  gdk_window_set_functions (window, GDK_FUNC_ALL
+                            | GDK_FUNC_RESIZE
+                            | GDK_FUNC_MOVE
+                            | GDK_FUNC_MINIMIZE
+                            | GDK_FUNC_MAXIMIZE
+                            | GDK_FUNC_CLOSE);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]