]> Dogcows Code - chaz/openbox/commitdiff
just because we think we're focused doesnt mean we actually are, so send the focus...
authorDana Jansens <danakj@orodu.net>
Fri, 14 Feb 2003 11:09:01 +0000 (11:09 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 14 Feb 2003 11:09:01 +0000 (11:09 +0000)
src/client.cc

index 2d7c246ae13e77ebf64f21efbf2ec969375f23bf..3dc6237f1a36e2e6cdfa6ae99fb3ec466fda3977 100644 (file)
@@ -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);
 }
This page took 0.023757 seconds and 4 git commands to generate.