diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-16 02:38:26 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-16 02:38:26 +0000 |
| commit | fb613db29ffcf1539c91f0ac0ca5d25cb4e593b5 (patch) | |
| tree | 24919a943691710eb35237e995b0ccf931e7ac4e /src/Workspace.cc | |
| parent | 5cf86b186c89ffb87f02ab732aa113ce8025dc2a (diff) | |
dont let focus fall back to strange windows like panels, only to normal windows and dialogs
Diffstat (limited to 'src/Workspace.cc')
| -rw-r--r-- | src/Workspace.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index 586adbad..5c38cf05 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -154,6 +154,9 @@ void Workspace::focusFallback(const BlackboxWindow *old_window) { end = stackingList.end(); for (; it != end; ++it) { BlackboxWindow *tmp = *it; + if (! (tmp->windowType() == BlackboxWindow::Type_Dialog || + tmp->windowType() == BlackboxWindow::Type_Normal)) + continue; // don't fallback to special windows if (tmp && tmp->setInputFocus()) { // we found our new focus target newfocus = tmp; |
