From 4ddb8181c2e4d6a4f4108c501a838d1101f2f7a5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 4 Feb 2003 00:45:27 +0000 Subject: make this focus shit not buggy again.. --- src/openbox.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/openbox.cc b/src/openbox.cc index 50146e27..29f9ea94 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -360,7 +360,11 @@ Client *Openbox::findClient(Window window) void Openbox::setFocusedClient(Client *c) { - if (c == _focused_client) return; + // sometimes this is called with the already-focused window, this is + // important for the python scripts to work (eg, c = 0 twice, or for the + // cycling list, it relies on this behavior. don't just return if its already + // set as focused + assert(_focused_screen); // uninstall the old colormap -- cgit v1.2.3