summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc4
1 files changed, 0 insertions, 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);
}