From f78761c8dd185d72d5e7468c58cea3630e78b8e6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 14 Feb 2003 11:09:01 +0000 Subject: [PATCH] just because we think we're focused doesnt mean we actually are, so send the focus change to the xserver anyways. --- src/client.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/client.cc b/src/client.cc index 2d7c246a..3dc6237f 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1717,8 +1717,6 @@ bool Client::focus() // visible on the screen if (!(frame->visible() && (_can_focus || _focus_notify))) return false; - if (_focused) return true; - // do a check to see if the window has already been unmapped or destroyed // do this intelligently while watching out for unmaps we've generated // (ignore_unmaps > 0) @@ -1762,8 +1760,6 @@ bool Client::focus() void Client::unfocus() const { - if (!_focused) return; - assert(openbox->focusedClient() == this); openbox->setFocusedClient(0); } -- 2.39.2