summaryrefslogtreecommitdiff
path: root/openbox/focus.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2004-02-24 20:26:08 +0000
committerMikael Magnusson <mikachu@comhem.se>2004-02-24 20:26:08 +0000
commitdd7c6ad734e88e6f2ad053f090bd5b04c5692fb4 (patch)
treeaa4ec13c9bbaddf13fbd48b43a56c0ec1d3ada4c /openbox/focus.c
parenta5451fa6fa9b18c4125c832ab64be7f4357e7ba8 (diff)
add back the focusLast option for the "i lost count"th time
Diffstat (limited to 'openbox/focus.c')
-rw-r--r--openbox/focus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index ba6b7b67..c990cf84 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -61,10 +61,10 @@ static void focus_cycle_destructor(ObClient *client, gpointer data)
}
static Window createWindow(Window parent, gulong mask,
- XSetWindowAttributes *attrib)
+ XSetWindowAttributes *attrib)
{
return XCreateWindow(ob_display, parent, 0, 0, 1, 1, 0,
- RrDepth(ob_rr_inst), InputOutput,
+ RrDepth(ob_rr_inst), InputOutput,
RrVisual(ob_rr_inst), mask, attrib);
}
@@ -252,7 +252,7 @@ ObClient* focus_fallback_target(ObFocusFallbackType type)
if (old->transient_for) {
gboolean trans = FALSE;
- if (!config_focus_follow)
+ if (!config_focus_follow || config_focus_last)
trans = TRUE;
else {
if ((target = client_under_pointer()) &&
@@ -289,7 +289,7 @@ ObClient* focus_fallback_target(ObFocusFallbackType type)
}
}
- if (config_focus_follow) {
+ if (config_focus_follow && !config_focus_last) {
if ((target = client_under_pointer()))
if (client_normal(target) && client_can_focus(target))
return target;