only focus new transient windows if their parent has the input focus
This commit is contained in:
parent
6b3f5abde4
commit
23da937e01
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue