all repos — fluxbox @ de68c88ed8ff8c7a887495a74de004f9da7f56df

custom fork of the fluxbox windowmanager

minor focus twiddle
rathnor rathnor
commit

de68c88ed8ff8c7a887495a74de004f9da7f56df

parent

31c77912d83144f265bc9842c09f89f0e8dc99ac

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.145 2003/05/07 11:36:43 fluxgen Exp $ +// $Id: Screen.cc,v 1.146 2003/05/07 13:50:41 rathnor Exp $ #include "Screen.hh"

@@ -969,10 +969,12 @@

void BScreen::removeClient(WinClient &client) { WinClient *cyc = *cycling_window; + FluxboxWindow *focused = Fluxbox::instance()->getFocusedWindow(); focused_list.remove(&client); if (cyc == &client) { cycling_window = focused_list.end(); - } + } else if (focused && &focused->winClient() == &client) + Fluxbox::instance()->revertFocus(&focused->getScreen()); } FluxboxWindow *BScreen::getIcon(unsigned int index) {