just because we think we're focused doesnt mean we actually are, so send the focus change to the xserver anyways.
This commit is contained in:
parent
4a90b1b48e
commit
f78761c8dd
1 changed files with 0 additions and 4 deletions
|
@ -1717,8 +1717,6 @@ bool Client::focus()
|
||||||
// visible on the screen
|
// visible on the screen
|
||||||
if (!(frame->visible() && (_can_focus || _focus_notify))) return false;
|
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 a check to see if the window has already been unmapped or destroyed
|
||||||
// do this intelligently while watching out for unmaps we've generated
|
// do this intelligently while watching out for unmaps we've generated
|
||||||
// (ignore_unmaps > 0)
|
// (ignore_unmaps > 0)
|
||||||
|
@ -1762,8 +1760,6 @@ bool Client::focus()
|
||||||
|
|
||||||
void Client::unfocus() const
|
void Client::unfocus() const
|
||||||
{
|
{
|
||||||
if (!_focused) return;
|
|
||||||
|
|
||||||
assert(openbox->focusedClient() == this);
|
assert(openbox->focusedClient() == this);
|
||||||
openbox->setFocusedClient(0);
|
openbox->setFocusedClient(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue