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:
parent
6c38f577fe
commit
74cf783be3
@ -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>
|
2002-05-15 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/workspace.c (meta_workspace_get_neighbor): use the layout
|
* src/workspace.c (meta_workspace_get_neighbor): use the layout
|
||||||
|
19
src/window.c
19
src/window.c
@ -1324,8 +1324,23 @@ meta_window_show (MetaWindow *window)
|
|||||||
|
|
||||||
/* Always focus new windows in click-to-focus */
|
/* Always focus new windows in click-to-focus */
|
||||||
if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK)
|
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)
|
if (did_show)
|
||||||
|
Loading…
Reference in New Issue
Block a user