[gnome-initial-setup] Don't allow to move the main window window at all
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] Don't allow to move the main window window at all
- Date: Fri, 26 Sep 2014 20:08:26 +0000 (UTC)
commit 363172c7d559afdd6a76a7874bc4456768c8af6e
Author: Mario Sanchez Prada <mario endlessm com>
Date: Mon Sep 22 16:36:40 2014 +0100
Don't allow to move the main window window at all
https://bugzilla.gnome.org/show_bug.cgi?id=737126
gnome-initial-setup/gis-driver.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index 23c1469..ff0c5d6 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -266,8 +266,13 @@ window_realize_cb (GtkWidget *widget, gpointer user_data)
GisDriverPrivate *priv = gis_driver_get_instance_private (driver);
GdkWindow *window;
window = gtk_widget_get_window (GTK_WIDGET (priv->main_window));
- /* 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]