diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-13 00:23:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-13 00:23:59 +0000 |
| commit | 6d16679486a9268a17f3bfd03b05febf1644a87e (patch) | |
| tree | 69cd3092ed2e8a7b13c4af852cd80b9fbfae8b6d /src/Toolbar.cc | |
| parent | 6486b6457693414862fdc34ea07457ed5cbf0a0d (diff) | |
focus code updates
Diffstat (limited to 'src/Toolbar.cc')
| -rw-r--r-- | src/Toolbar.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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. |
