diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-19 06:56:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-19 06:56:00 +0000 |
| commit | 23da937e01a72cbb7af5108b9620d58cc216d731 (patch) | |
| tree | f3a6ed12d5cb286612e1526967aaa761ecf1254b /src/Window.cc | |
| parent | 6b3f5abde4139d044312d5a3ab53c63e1acf371b (diff) | |
only focus new transient windows if their parent has the input focus
Diffstat (limited to 'src/Window.cc')
| -rw-r--r-- | src/Window.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc index 4c7a31d7..2eaa6a67 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2514,7 +2514,8 @@ void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) { if (isNormal()) { if (! blackbox->isStartup()) { XSync(blackbox->getXDisplay(), False); // make sure the frame is mapped - if (isTransient() || screen->doFocusNew()) { + if (screen->doFocusNew()|| (isTransient() && getTransientFor() && + getTransientFor()->isFocused())) { setInputFocus(); } if (screen->getPlacementPolicy() == BScreen::ClickMousePlacement) { |
