aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-19 01:43:18 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-19 01:43:18 (GMT)
commita8ec9d97b918325e78469bb63c01781a0feef0e7 (patch)
tree225d68197202ced33d6ae518ea60bcd437e23352 /src
parentce74ed1c30d64760581599ec05030b609216feba (diff)
downloadfluxbox_paul-a8ec9d97b918325e78469bb63c01781a0feef0e7.zip
fluxbox_paul-a8ec9d97b918325e78469bb63c01781a0feef0e7.tar.bz2
don't let transient windows steal the focus from other programs
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index cccb9c4..6377da7 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2246,7 +2246,7 @@ bool FluxboxWindow::allowsFocusFromClient() {
2246 2246
2247 FluxboxWindow *cur = FocusControl::focusedFbWindow(); 2247 FluxboxWindow *cur = FocusControl::focusedFbWindow();
2248 WinClient *client = FocusControl::focusedWindow(); 2248 WinClient *client = FocusControl::focusedWindow();
2249 if (cur && client && cur->isTyping() && 2249 if (cur && client && (m_client->isTransient() || cur->isTyping()) &&
2250 getRootTransientFor(m_client) != getRootTransientFor(client)) 2250 getRootTransientFor(m_client) != getRootTransientFor(client))
2251 return false; 2251 return false;
2252 2252