diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-19 01:43:18 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-19 01:43:18 (GMT) |
commit | a8ec9d97b918325e78469bb63c01781a0feef0e7 (patch) | |
tree | 225d68197202ced33d6ae518ea60bcd437e23352 | |
parent | ce74ed1c30d64760581599ec05030b609216feba (diff) | |
download | fluxbox-a8ec9d97b918325e78469bb63c01781a0feef0e7.zip fluxbox-a8ec9d97b918325e78469bb63c01781a0feef0e7.tar.bz2 |
don't let transient windows steal the focus from other programs
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/Window.cc | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 1.0.1: | 2 | Changes for 1.0.1: |
3 | *07/12/19: | ||
4 | * Don't let transient windows steal focus from other programs (Mark) | ||
5 | Window.cc | ||
3 | *07/12/18: | 6 | *07/12/18: |
4 | * NLS entries for Mouse Tab Focus and Click Tab Focus were switched - please | 7 | * NLS entries for Mouse Tab Focus and Click Tab Focus were switched - please |
5 | make sure they're right now in your language, bug #1786566 (Mark) | 8 | make sure they're right now in your language, bug #1786566 (Mark) |
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 | ||