don't let transient windows steal the focus from other programs
This commit is contained in:
parent
ce74ed1c30
commit
a8ec9d97b9
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 1.0.1:
|
Changes for 1.0.1:
|
||||||
|
*07/12/19:
|
||||||
|
* Don't let transient windows steal focus from other programs (Mark)
|
||||||
|
Window.cc
|
||||||
*07/12/18:
|
*07/12/18:
|
||||||
* NLS entries for Mouse Tab Focus and Click Tab Focus were switched - please
|
* NLS entries for Mouse Tab Focus and Click Tab Focus were switched - please
|
||||||
make sure they're right now in your language, bug #1786566 (Mark)
|
make sure they're right now in your language, bug #1786566 (Mark)
|
||||||
|
|
|
@ -2246,7 +2246,7 @@ bool FluxboxWindow::allowsFocusFromClient() {
|
||||||
|
|
||||||
FluxboxWindow *cur = FocusControl::focusedFbWindow();
|
FluxboxWindow *cur = FocusControl::focusedFbWindow();
|
||||||
WinClient *client = FocusControl::focusedWindow();
|
WinClient *client = FocusControl::focusedWindow();
|
||||||
if (cur && client && cur->isTyping() &&
|
if (cur && client && (m_client->isTransient() || cur->isTyping()) &&
|
||||||
getRootTransientFor(m_client) != getRootTransientFor(client))
|
getRootTransientFor(m_client) != getRootTransientFor(client))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue