projects
/
dana
/
openbox-history.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf0179b
)
don't fallback to shaded windows
author
Dana Jansens
<danakj@orodu.net>
Wed, 4 Jul 2007 13:49:01 +0000
(13:49 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 4 Jul 2007 13:49:01 +0000
(13:49 +0000)
openbox/focus.c
patch
|
blob
|
history
diff --git
a/openbox/focus.c
b/openbox/focus.c
index
f34021a
..
3a0905c
100644
(file)
--- a/
openbox/focus.c
+++ b/
openbox/focus.c
@@
-122,12
+122,12
@@
static ObClient* focus_fallback_target(gboolean allow_refocus,
1. it is on the current desktop. this ignores omnipresent
windows, which are problematic in their own rite, unless they are
specifically allowed
1. it is on the current desktop. this ignores omnipresent
windows, which are problematic in their own rite, unless they are
specifically allowed
- 2. it is a normal type window, don't fall back onto a dock or
- a splashscreen or a desktop window (save the desktop as a
- backup fallback though)
+ 2. it is a valid auto-focus target
+ 3. it is not shaded
*/
if ((allow_omnipresent || c->desktop == screen_desktop) &&
focus_valid_target(c, FALSE, FALSE, FALSE, FALSE) &&
*/
if ((allow_omnipresent || c->desktop == screen_desktop) &&
focus_valid_target(c, FALSE, FALSE, FALSE, FALSE) &&
+ !c->shaded &&
(allow_refocus || client_focus_target(c) != old) &&
client_focus(c))
{
(allow_refocus || client_focus_target(c) != old) &&
client_focus(c))
{