summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-08-04 20:20:53 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-08-04 20:20:53 +0000
commit585e3625266dd0fadcdb033739760db423d31714 (patch)
tree0b7009b43fc3b584f5eca6dbe1894c3180ca3e7c /src/frames.c
parent8984fd358b29c2286a0f4763a297205645366dd0 (diff)
downloadmetacity-585e3625266dd0fadcdb033739760db423d31714.tar.gz
metacity-585e3625266dd0fadcdb033739760db423d31714.tar.bz2
raise/focus on click, even if the click was on the client area (this makes
2002-08-04 Havoc Pennington <hp@redhat.com> * src/frames.c (meta_frames_button_press_event): raise/focus on click, even if the click was on the client area (this makes Alt+button1 raise windows again, yay) * src/stack.c (compute_layer): put panels in the DOCK layer always (keep them on top of other windows). Still sloppy-focus raised with respect to other docks. * configure.in: remove -Wshadow for now as GTK headers make all kinds of noise with it.
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/frames.c b/src/frames.c
index fffdcfc..18ca609 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -1002,9 +1002,7 @@ meta_frames_button_press_event (GtkWidget *widget,
control = get_control (frames, frame, event->x, event->y);
- if (control == META_FRAME_CONTROL_CLIENT_AREA)
- return FALSE; /* not on the frame, just passed through from client */
-
+ /* raise/focus on click, even if click was on client area */
if (event->button == 1 &&
!(control == META_FRAME_CONTROL_MINIMIZE ||
control == META_FRAME_CONTROL_DELETE))
@@ -1018,6 +1016,10 @@ meta_frames_button_press_event (GtkWidget *widget,
frame->xwindow,
event->time);
}
+
+ /* don't do the rest of this if on client area */
+ if (control == META_FRAME_CONTROL_CLIENT_AREA)
+ return FALSE; /* not on the frame, just passed through from client */
/* We want to shade even if we have a GrabOp, since we'll have a move grab
* if we double click the titlebar.
@@ -1538,6 +1540,7 @@ meta_frames_paint_to_drawable (MetaFrames *frames,
button_states[META_BUTTON_TYPE_CLOSE] = META_BUTTON_STATE_PRELIGHT;
break;
default:
+ break;
}
grab_frame = meta_core_get_grab_frame (gdk_display);