only focus new transient windows if their parent has the input focus

This commit is contained in:
Dana Jansens 2002-07-19 06:56:00 +00:00
parent 6b3f5abde4
commit 23da937e01

View file

@ -2514,7 +2514,8 @@ void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) {
if (isNormal()) { if (isNormal()) {
if (! blackbox->isStartup()) { if (! blackbox->isStartup()) {
XSync(blackbox->getXDisplay(), False); // make sure the frame is mapped XSync(blackbox->getXDisplay(), False); // make sure the frame is mapped
if (isTransient() || screen->doFocusNew()) { if (screen->doFocusNew()|| (isTransient() && getTransientFor() &&
getTransientFor()->isFocused())) {
setInputFocus(); setInputFocus();
} }
if (screen->getPlacementPolicy() == BScreen::ClickMousePlacement) { if (screen->getPlacementPolicy() == BScreen::ClickMousePlacement) {