projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3f5ab
)
only focus new transient windows if their parent has the input focus
author
Dana Jansens
<danakj@orodu.net>
Fri, 19 Jul 2002 06:56:00 +0000
(06:56 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 19 Jul 2002 06:56:00 +0000
(06:56 +0000)
src/Window.cc
patch
|
blob
|
history
diff --git
a/src/Window.cc
b/src/Window.cc
index 4c7a31d76d9536751908b498a34af527875a1a84..2eaa6a67a56aa7650b50a66b9c06fe40ff5349f8 100644
(file)
--- 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) {