summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraig Black <blackc@speakeasy.net>2002-08-08 05:28:51 +0000
committerCraig Black <blackc@src.gnome.org>2002-08-08 05:28:51 +0000
commitd299fbd8da42687bcfa0d8577db5ed0d690123a7 (patch)
tree7909fa38f9d96e849fc2b87e2c961ff3923cafa1 /src
parent8a5cce91bf55c54af878c17d969fa3d0ca3d17ae (diff)
downloadmetacity-d299fbd8da42687bcfa0d8577db5ed0d690123a7.tar.gz
metacity-d299fbd8da42687bcfa0d8577db5ed0d690123a7.tar.bz2
focus top window after showing desktop, fixes #88080.
2002-08-07 Craig Black <blackc@speakeasy.net> * src/display.c: (meta_display_unshow_desktop): focus top window after showing desktop, fixes #88080.
Diffstat (limited to 'src')
-rw-r--r--src/display.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c
index ec68bb5..00ba3fe 100644
--- a/src/display.c
+++ b/src/display.c
@@ -2684,6 +2684,8 @@ meta_display_show_desktop (MetaDisplay *display)
void
meta_display_unshow_desktop (MetaDisplay *display)
{
+ GSList *tmp;
+
if (!display->showing_desktop)
return;
@@ -2692,6 +2694,14 @@ meta_display_unshow_desktop (MetaDisplay *display)
queue_windows_showing (display);
meta_display_update_show_desktop_hint (display);
+
+ tmp = display->screens;
+ while (tmp != NULL)
+ {
+ MetaScreen *screen = tmp->data;
+ meta_screen_focus_top_window (screen, NULL);
+ tmp = tmp->next;
+ }
}
void