summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2006-08-07 22:06:25 +0000
committerElijah Newren <newren@src.gnome.org>2006-08-07 22:06:25 +0000
commitacc6c97997ca08b1d311b7da2dcb69aa133f63be (patch)
tree755e0f4513015352aa62044bafb6778b611b443e
parentdcef402d6812115a878c7e4ea63c6b46640a023b (diff)
downloadmetacity-acc6c97997ca08b1d311b7da2dcb69aa133f63be.tar.gz
Patch from Chris Ball to not minimize in response to double clicks on the
2006-08-07 Elijah Newren <newren gmail com> * src/frames.c (meta_frames_button_press_event): Patch from Chris Ball to not minimize in response to double clicks on the titlebar when minimiziation should not be allowed. #347377
-rw-r--r--ChangeLog6
-rw-r--r--src/frames.c9
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1fc17f8e..9c6968e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2006-08-07 Elijah Newren <newren gmail com>
+ * src/frames.c (meta_frames_button_press_event): Patch from Chris
+ Ball to not minimize in response to double clicks on the titlebar
+ when minimiziation should not be allowed. #347377
+
+2006-08-07 Elijah Newren <newren gmail com>
+
Patch from Björn Lindqvist to fix button lighting with dragged
clicks. #321474.
diff --git a/src/frames.c b/src/frames.c
index 6b740d9a..2b629eb1 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -1275,9 +1275,14 @@ meta_frames_button_press_event (GtkWidget *widget,
case META_ACTION_DOUBLE_CLICK_TITLEBAR_MINIMIZE:
{
- meta_core_minimize (gdk_display, frame->xwindow);
- break;
+ flags = meta_core_get_frame_flags (gdk_display, frame->xwindow);
+
+ if (flags & META_FRAME_ALLOWS_MINIMIZE)
+ {
+ meta_core_minimize (gdk_display, frame->xwindow);
+ }
}
+ break;
case META_ACTION_DOUBLE_CLICK_TITLEBAR_NONE:
/* Yaay, a sane user that doesn't use that other weird crap! */