From 6d16679486a9268a17f3bfd03b05febf1644a87e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 13 May 2002 00:23:59 +0000 Subject: focus code updates --- src/Toolbar.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Toolbar.cc') diff --git a/src/Toolbar.cc b/src/Toolbar.cc index fd219144..7ce387eb 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -1154,9 +1154,9 @@ void Toolbar::keyPressEvent(XKeyEvent *ke) { if (openbox.focusedWindow()) { openbox.focusedWindow()->setInputFocus(); openbox.focusedWindow()->setFocusFlag(True); - } else { - XSetInputFocus(display, PointerRoot, None, CurrentTime); - } + } else + openbox.focusWindow((OpenboxWindow *) 0); + // check to make sure that new_name[0] != 0... otherwise we have a null // workspace name which causes serious problems, especially for the // Openbox::LoadRC() method. -- cgit v1.2.3