summaryrefslogtreecommitdiff
path: root/src/util.h
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/util.h
parent86e9191d34570535e59f0fd73c39a1697cceac40 (diff)
downloadmutter-ee1361fb6e874b90a62e6c8c0c47913bf91c3baf.tar.gz
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/util.h')
-rw-r--r--src/util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index f56b5f195..cd71129f3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -43,6 +43,16 @@ void meta_warning (const char *format,
void meta_fatal (const char *format,
...) G_GNUC_PRINTF (1, 2);
+typedef enum
+{
+ META_DEBUG_FOCUS
+
+} MetaDebugTopic;
+
+void meta_topic (MetaDebugTopic topic,
+ const char *format,
+ ...) G_GNUC_PRINTF (2, 3);
+
void meta_push_no_msg_prefix (void);
void meta_pop_no_msg_prefix (void);