summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-09 04:14:40 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-09 04:14:40 +0000
commitdeed8016ed3cdffd1eab3ff9bda71cbb639f8404 (patch)
treeb181de55f1a30c5b1eaaa8e3020505d94c9afd03 /src/frames.c
parentb168954ed30d7232f442efe5d6c364fc832c7cb9 (diff)
downloadmetacity-deed8016ed3cdffd1eab3ff9bda71cbb639f8404.tar.gz
metacity-deed8016ed3cdffd1eab3ff9bda71cbb639f8404.tar.bz2
don't raise/focus the window if minimize/close are clicked, patch from
2002-06-09 Havoc Pennington <hp@pobox.com> * src/frames.c (meta_frames_button_press_event): don't raise/focus the window if minimize/close are clicked, patch from Gaute Lindkvist #75460
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frames.c b/src/frames.c
index c7cba2a..a0f826b 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -1005,7 +1005,9 @@ meta_frames_button_press_event (GtkWidget *widget,
if (control == META_FRAME_CONTROL_CLIENT_AREA)
return FALSE; /* not on the frame, just passed through from client */
- if (event->button == 1)
+ if (event->button == 1 &&
+ !(control == META_FRAME_CONTROL_MINIMIZE ||
+ control == META_FRAME_CONTROL_DELETE))
{
meta_core_user_raise (gdk_display,
frame->xwindow);