don't skip windows that are skip_taskbar unless they are normal typed.. i.e. if a dialog sets this don't skip it (gnome shutdown/logout dialogs don't get focused otherwise in arch linux)
This commit is contained in:
parent
5148b839fe
commit
6dfc3c726a
2 changed files with 5 additions and 7 deletions
|
@ -450,6 +450,8 @@ void client_manage(Window window)
|
||||||
g_free(monitor);
|
g_free(monitor);
|
||||||
monitor = NULL;
|
monitor = NULL;
|
||||||
|
|
||||||
|
ob_debug_type(OB_DEBUG_FOCUS, "Going to try activate new window? %s\n",
|
||||||
|
activate ? "yes" : "no");
|
||||||
if (activate) {
|
if (activate) {
|
||||||
gboolean raise = FALSE;
|
gboolean raise = FALSE;
|
||||||
|
|
||||||
|
|
|
@ -337,13 +337,9 @@ gboolean focus_valid_target(ObClient *ft,
|
||||||
that can be focused instead */
|
that can be focused instead */
|
||||||
!focus_target_has_siblings(ft, iconic_windows, all_desktops))));
|
!focus_target_has_siblings(ft, iconic_windows, all_desktops))));
|
||||||
|
|
||||||
/* it's not set to skip the taskbar (unless it is a type that would be
|
/* it's not set to skip the taskbar (but this only applies to normal typed
|
||||||
expected to set this hint, or modal) */
|
windows, and is overridden if the window is modal) */
|
||||||
ok = ok && ((ft->type == OB_CLIENT_TYPE_DOCK ||
|
ok = ok && (ft->type != OB_CLIENT_TYPE_NORMAL ||
|
||||||
ft->type == OB_CLIENT_TYPE_DESKTOP ||
|
|
||||||
ft->type == OB_CLIENT_TYPE_TOOLBAR ||
|
|
||||||
ft->type == OB_CLIENT_TYPE_MENU ||
|
|
||||||
ft->type == OB_CLIENT_TYPE_UTILITY) ||
|
|
||||||
ft->modal ||
|
ft->modal ||
|
||||||
!ft->skip_taskbar);
|
!ft->skip_taskbar);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue