no VD change for activation & unreasonable policy

F(S)UM mean "the focus is where the mouse is"
the mouse is not on the other virtual desktop
(and it was even granted regardless of the actual geometry/position)

The "unreasonable" focus policies expose an issue about
the present linked handling of "allow activation" and
"allow raising" (see https://git.reviewboard.kde.org/r/110919/ )

Activation would match "extreme" (if the window maps on the same
virtual desktop, half a mile away from the mouse, it won't
receive the focus) but not regarding raising (which is actually
an issue entirely different from FSP)

REVIEW: 112585
CCBUG: 80897
This commit is contained in:
Thomas Lübking 2013-09-07 23:35:06 +02:00
parent 3eb0b27d00
commit 51c3c6cc42

View file

@ -569,7 +569,7 @@ bool Client::manage(xcb_window_t w, bool isMapped)
}
} else if (allow) {
// also force if activation is allowed
if (!isOnCurrentDesktop()) {
if (!isOnCurrentDesktop() && options->focusPolicyIsReasonable()) {
VirtualDesktopManager::self()->setCurrent(desktop());
}
/*if (!isOnCurrentActivity()) {