summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Boaventura <brunobol@gnome.org>2007-01-13 13:27:20 +0000
committerBruno Boaventura de Oliveira Lacerda <brunobol@src.gnome.org>2007-01-13 13:27:20 +0000
commit50c5bf4bf692eec215b15936b8ea069779b0e04c (patch)
treec95d92f2473839aac7f43ce75109cbaff0197856
parentc4a135aeee6cad7f0b6b6abcd9ad13790fb25843 (diff)
downloadmetacity-50c5bf4bf692eec215b15936b8ea069779b0e04c.tar.gz
Unmaximize button must keep preesed appearence when clicked (hold down),
2007-01-13 Bruno Boaventura <brunobol@gnome.org> * src/frames.c (meta_frames_motion_notify_event): Unmaximize button must keep preesed appearence when clicked (hold down), move off, and back over the button. Fixes #395560. Patch from Mad Alex <madalexonline@yahoo.co.uk>. svn path=/trunk/; revision=3040
-rw-r--r--ChangeLog7
-rw-r--r--src/frames.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 44417758..166d414e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-13 Bruno Boaventura <brunobol@gnome.org>
+
+ * src/frames.c (meta_frames_motion_notify_event): Unmaximize
+ button must keep preesed appearence when clicked (hold down),
+ move off, and back over the button. Fixes #395560. Patch from
+ Mad Alex <madalexonline@yahoo.co.uk>.
+
2007-01-02 Thomas Thurman <thomas@thurman.org.uk>
* src/c-screen.c (meta_comp_screen_redirect): Remove double unref
diff --git a/src/frames.c b/src/frames.c
index 0c70b01a..37b1e79e 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -1797,7 +1797,8 @@ meta_frames_motion_notify_event (GtkWidget *widget,
grab_op == META_GRAB_OP_CLICKING_DELETE) ||
(control == META_FRAME_CONTROL_MINIMIZE &&
grab_op == META_GRAB_OP_CLICKING_MINIMIZE) ||
- (control == META_FRAME_CONTROL_MAXIMIZE &&
+ ((control == META_FRAME_CONTROL_MAXIMIZE ||
+ control == META_FRAME_CONTROL_UNMAXIMIZE) &&
(grab_op == META_GRAB_OP_CLICKING_MAXIMIZE ||
grab_op == META_GRAB_OP_CLICKING_UNMAXIMIZE)) ||
(control == META_FRAME_CONTROL_SHADE &&