[gnome-initial-setup] driver: Disable all WM functions except move
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] driver: Disable all WM functions except move
- Date: Tue, 23 Apr 2013 15:29:21 +0000 (UTC)
commit a5d01dea02c6076c666bd3fbf28f63b8222c74ef
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Apr 23 17:06:16 2013 +0200
driver: Disable all WM functions except move
Calling gdk_window_set_functions() overrides the 'deletable' property
set on the GtkApplicationWindow instance. So let's just do it in one
place and allow only the WM functions we want.
https://bugzilla.gnome.org/show_bug.cgi?id=698665
gnome-initial-setup/gis-driver.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index c0b69b6..450fb92 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -237,8 +237,8 @@ window_realize_cb (GtkWidget *widget, gpointer user_data)
GisDriverPrivate *priv = GIS_DRIVER (user_data)->priv;
GdkWindow *window;
window = gtk_widget_get_window (GTK_WIDGET (priv->main_window));
- /* disable minimize */
- gdk_window_set_functions (window, GDK_FUNC_ALL | GDK_FUNC_MINIMIZE);
+ /* disable WM functions except move */
+ gdk_window_set_functions (window, GDK_FUNC_MOVE);
}
static void
@@ -254,7 +254,6 @@ gis_driver_startup (GApplication *app)
"type", GTK_WINDOW_TOPLEVEL,
"border-width", 12,
"icon-name", "preferences-system",
- "deletable", FALSE,
"resizable", FALSE,
"window-position", GTK_WIN_POS_CENTER_ALWAYS,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]