Disable menubar dragging in GTKv2 apps.
authorIain Patterson <me@iain.cx>
Thu, 25 Aug 2011 09:58:22 +0000 (10:58 +0100)
committerIain Patterson <me@iain.cx>
Thu, 25 Aug 2011 10:18:48 +0000 (11:18 +0100)
By default you can click in an application's menubar and drag to move
the window around.
Disable this behaviour by setting the "window-dragging" attribute of
GtkMenuBar widgets to 0.

.themes/override-2.0 [new file with mode: 0644]

diff --git a/.themes/override-2.0 b/.themes/override-2.0
new file mode 100644 (file)
index 0000000..8445e56
--- /dev/null
@@ -0,0 +1,6 @@
+# Disable dragging windows by clicking in the menubar.
+style "no-drag" = "Default" {
+  GtkWidget::window-dragging = 0
+}
+
+widget_class "*<GtkMenuBar>*" style : rc "no-drag"