summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-06-04 19:30:35 +0000
committerDana Jansens <danakj@orodu.net>2003-06-04 19:30:35 +0000
commit8a1fa6d3ac47eba3e781463aec131cf401a29ec2 (patch)
treef53803ac67fc05ae05b454f5c95eb39bdb479550
parentc6fd3aa890fd7497b12f270a03c895050d67b04e (diff)
allow cycling to iconic windows
-rw-r--r--openbox/focus.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 761d4f4e..141fc474 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -322,8 +322,13 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
}
/*ft = client_focus_target(it->data);*/
ft = it->data;
+ /* we don't use client_can_focus here, because that doesn't let you
+ focus an iconic window, but we want to be able to, so we just check
+ if the focus flags on the window allow it, and its on the current
+ desktop */
if (ft->transients == NULL && client_normal(ft) &&
- client_can_focus(ft)) {
+ ((ft->can_focus || ft->focus_notify) &&
+ (ft->desktop == screen_desktop || ft->desktop == DESKTOP_ALL))) {
if (ft != focus_cycle_target) { /* prevents flicker */
if (focus_cycle_target)
frame_adjust_focus(focus_cycle_target->frame, FALSE);