summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-01-03 23:28:19 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-01-03 23:28:19 +0000
commitee1361fb6e874b90a62e6c8c0c47913bf91c3baf (patch)
tree8d8b74dc3cbaf051904237f22da9a14e17ac8831 /src/frames.c
parent86e9191d34570535e59f0fd73c39a1697cceac40 (diff)
downloadmetacity-ee1361fb6e874b90a62e6c8c0c47913bf91c3baf.tar.gz
metacity-ee1361fb6e874b90a62e6c8c0c47913bf91c3baf.tar.bz2
focus top window when switching to a new workspace
2002-01-03 Havoc Pennington <hp@pobox.com> * src/workspace.c (meta_workspace_activate): focus top window when switching to a new workspace * src/util.c (meta_topic): start putting verbose output in categories * src/window.c (meta_window_shade): focus frame after we queue the calc_showing so the maps/unmaps have already happened. * src/display.c (meta_display_get_current_time): add the "get time of current event" function and call it occasionally. * src/window.c (meta_window_free): if we have focus, call meta_screen_focus_top_window(). (meta_window_minimize): ditto (meta_window_delete): ditto * src/screen.c (meta_screen_ensure_tab_popup): fix memory leak - didn't free tab list (meta_screen_focus_top_window): new function to use when we unmap or unmanage a focused window * src/stack.c (meta_stack_get_default_focus_window): function used in meta_screen_focus_top_window
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frames.c b/src/frames.c
index 91becc1..0222562 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -1032,6 +1032,9 @@ meta_frames_button_press_event (GtkWidget *widget,
{
meta_core_user_raise (gdk_display,
frame->xwindow);
+ meta_topic (META_DEBUG_FOCUS,
+ "Focusing frame 0x%lx due to button 1 press\n",
+ frame->xwindow);
meta_core_user_focus (gdk_display,
frame->xwindow,
event->time);