don't focus dock, desktop, etc. windows on initial map, only windows that

2002-05-16  Havoc Pennington  <hp@redhat.com>

	* src/window.c (meta_window_show): don't focus dock, desktop,
	etc. windows on initial map, only windows that should have focus.
This commit is contained in:
Havoc Pennington 2002-05-16 19:08:20 +00:00 committed by Havoc Pennington
parent 6c38f577fe
commit 74cf783be3
2 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-05-16 Havoc Pennington <hp@redhat.com>
* src/window.c (meta_window_show): don't focus dock, desktop,
etc. windows on initial map, only windows that should have focus.
2002-05-15 Havoc Pennington <hp@pobox.com>
* src/workspace.c (meta_workspace_get_neighbor): use the layout

View File

@ -1324,8 +1324,23 @@ meta_window_show (MetaWindow *window)
/* Always focus new windows in click-to-focus */
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK)
meta_window_focus (window,
meta_display_get_current_time (window->display));
{
switch (window->type)
{
case META_WINDOW_DOCK:
case META_WINDOW_DESKTOP:
case META_WINDOW_UTILITY:
case META_WINDOW_SPLASHSCREEN:
/* don't focus these */
break;
case META_WINDOW_NORMAL:
case META_WINDOW_DIALOG:
case META_WINDOW_MODAL_DIALOG:
meta_window_focus (window,
meta_display_get_current_time (window->display));
break;
}
}
}
if (did_show)