aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-16 11:38:30 (GMT)
committerfluxgen <fluxgen>2004-01-16 11:38:30 (GMT)
commit41eae48eb48d7ec0a35f9d009e6b02ea8f4cae0e (patch)
tree29ca3423a15643b3e1509194c057f34456e4e0ef
parent40cfbb75683970bb95b4140db37eaa98a52b93a5 (diff)
downloadfluxbox_paul-41eae48eb48d7ec0a35f9d009e6b02ea8f4cae0e.zip
fluxbox_paul-41eae48eb48d7ec0a35f9d009e6b02ea8f4cae0e.tar.bz2
oops
-rw-r--r--src/fluxbox.cc25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 9bba564..c37e4b8 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.223 2004/01/16 11:29:12 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.224 2004/01/16 11:38:30 fluxgen Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -759,20 +759,19 @@ void Fluxbox::handleEvent(XEvent * const e) {
759 if (e->type == FocusOut && 759 if (e->type == FocusOut &&
760 FbTk::Menu::focused() != 0 && 760 FbTk::Menu::focused() != 0 &&
761 FbTk::Menu::focused()->window() == e->xfocus.window) { 761 FbTk::Menu::focused()->window() == e->xfocus.window) {
762 // find screen num 762 // find screen num
763 BScreen *screen = 0; 763 BScreen *screen = 0;
764 ScreenList::iterator it = m_screen_list.begin(); 764 ScreenList::iterator it = m_screen_list.begin();
765 ScreenList::iterator it_end = m_screen_list.end(); 765 ScreenList::iterator it_end = m_screen_list.end();
766 for (; it != it_end; ++it) { 766 for (; it != it_end; ++it) {
767 if ( (*it)->screenNumber() == 767 if ( (*it)->screenNumber() ==
768 FbTk::Menu::focused()->fbwindow().screenNumber()) { 768 FbTk::Menu::focused()->fbwindow().screenNumber()) {
769 screen = (*it); 769 screen = (*it);
770 break; // found the screen, no more search 770 break; // found the screen, no more search
771 }
772 } 771 }
773 if (screen != 0)
774 revertFocus(*screen);
775 } 772 }
773 if (screen != 0)
774 revertFocus(*screen);
776 } 775 }
777 776
778 // try FbTk::EventHandler first 777 // try FbTk::EventHandler first