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.
This commit is contained in:
Craig Black 2002-08-08 05:28:51 +00:00 committed by Craig Black
parent 8a5cce91bf
commit d299fbd8da
2 changed files with 22 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2002-08-07 Craig Black <blackc@speakeasy.net>
* src/display.c: (meta_display_unshow_desktop): focus
top window after showing desktop, fixes #88080.
2002-08-07 Craig Black <blackc@speakeasy.net> 2002-08-07 Craig Black <blackc@speakeasy.net>
* src/core.c: (meta_core_show_window_menu): focus window * src/core.c: (meta_core_show_window_menu): focus window

View File

@ -2684,6 +2684,8 @@ meta_display_show_desktop (MetaDisplay *display)
void void
meta_display_unshow_desktop (MetaDisplay *display) meta_display_unshow_desktop (MetaDisplay *display)
{ {
GSList *tmp;
if (!display->showing_desktop) if (!display->showing_desktop)
return; return;
@ -2692,6 +2694,14 @@ meta_display_unshow_desktop (MetaDisplay *display)
queue_windows_showing (display); queue_windows_showing (display);
meta_display_update_show_desktop_hint (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 void