X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.cc;h=de7767a2151c10594c5ad08771385f464667c63f;hb=9e6b0d5a8d0226232802bdece77665b167f98dae;hp=50146e270dad245e0a025535aab917cba032c75c;hpb=1cd253f4684ee126340fae38094b637f1b0010ea;p=chaz%2Fopenbox diff --git a/src/openbox.cc b/src/openbox.cc index 50146e27..de7767a2 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -360,7 +360,10 @@ 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). don't just + // return if _focused_client == c + assert(_focused_screen); // uninstall the old colormap