From fb613db29ffcf1539c91f0ac0ca5d25cb4e593b5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 16 Jul 2002 02:38:26 +0000 Subject: dont let focus fall back to strange windows like panels, only to normal windows and dialogs --- src/Workspace.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Workspace.cc') 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; -- cgit v1.2.3