summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-19 06:56:00 +0000
committerDana Jansens <danakj@orodu.net>2002-07-19 06:56:00 +0000
commit23da937e01a72cbb7af5108b9620d58cc216d731 (patch)
treef3a6ed12d5cb286612e1526967aaa761ecf1254b
parent6b3f5abde4139d044312d5a3ab53c63e1acf371b (diff)
only focus new transient windows if their parent has the input focus
-rw-r--r--src/Window.cc3
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) {