Skip to content
Snippets Groups Projects
Commit 07f89501 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

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
parent e4beae65
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment