Fix indirect(?) wm_take_focus(?) handling

See review request for details, issue might be caused by plasma cashew popup

BUG: 240673
REVIEW: 103700
This commit is contained in:
Thomas Lübking 2012-01-24 22:39:18 +01:00
parent 19fceb5216
commit 3704163a11

View file

@ -144,7 +144,9 @@ void RootInfo::changeActiveWindow(Window w, NET::RequestSource src, Time timesta
src = NET::FromTool;
if (src == NET::FromTool)
workspace->activateClient(c, true); // force
else { // NET::FromApplication
else if (c == workspace->mostRecentlyActivatedClient()) {
return; // WORKAROUND? With > 1 plasma activities, we cause this ourselves. bug #240673
} else { // NET::FromApplication
Client* c2;
if (workspace->allowClientActivation(c, timestamp, false, true))
workspace->activateClient(c);