don't fallback to shaded windows
This commit is contained in:
parent
bf0179b7eb
commit
b41c339531
1 changed files with 3 additions and 3 deletions
|
@ -122,12 +122,12 @@ static ObClient* focus_fallback_target(gboolean allow_refocus,
|
||||||
1. it is on the current desktop. this ignores omnipresent
|
1. it is on the current desktop. this ignores omnipresent
|
||||||
windows, which are problematic in their own rite, unless they are
|
windows, which are problematic in their own rite, unless they are
|
||||||
specifically allowed
|
specifically allowed
|
||||||
2. it is a normal type window, don't fall back onto a dock or
|
2. it is a valid auto-focus target
|
||||||
a splashscreen or a desktop window (save the desktop as a
|
3. it is not shaded
|
||||||
backup fallback though)
|
|
||||||
*/
|
*/
|
||||||
if ((allow_omnipresent || c->desktop == screen_desktop) &&
|
if ((allow_omnipresent || c->desktop == screen_desktop) &&
|
||||||
focus_valid_target(c, FALSE, FALSE, FALSE, FALSE) &&
|
focus_valid_target(c, FALSE, FALSE, FALSE, FALSE) &&
|
||||||
|
!c->shaded &&
|
||||||
(allow_refocus || client_focus_target(c) != old) &&
|
(allow_refocus || client_focus_target(c) != old) &&
|
||||||
client_focus(c))
|
client_focus(c))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue