Summary: | [Wayland] activating minimized window from another virtual desktop adds window to current virtual desktop | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Alexandre Pereira <pereira.alex> |
Component: | Task Manager and Icons-Only Task Manager widgets | Assignee: | Eike Hein <hein> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugseforuns, herzenschein, johannespfrang+kde, nate, plasma-bugs-null |
Priority: | NOR | Keywords: | wayland-only |
Version First Reported In: | 5.18.1 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=410084 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Alexandre Pereira
2020-02-19 17:31:56 UTC
been testing a fix, which seems to work ( tested on wayland ) on file /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/code/tools.js: function activateTask(index, model, modifiers, task) { if (modifiers & Qt.ShiftModifier) { tasksModel.requestNewInstance(index); } else if (model.IsGroupParent === true) { if ((iconsOnly || modifiers == Qt.ControlModifier) && backend.canPresentWindows()) { task.toolTipAreaItem.hideToolTip(); tasks.presentWindows(model.WinIdList); } else if (groupDialog.visible) { groupDialog.visible = false; } else { groupDialog.visualParent = task; groupDialog.visible = true; } } else { if (model.IsMinimized === true) { //tasksModel.requestToggleMinimized(index); tasksModel.requestActivate(index); } else if (model.IsActive === true) { tasksModel.requestToggleMinimized(index); } else { tasksModel.requestActivate(index); } } } --- commenting "//tasksModel.requestToggleMinimized(index);" seems to do the trick, in unminimizing the window and showing it on the proper desktop ! tested the fix on X11 also, works properly without issues I believe I experienced this issue, but I didn't manage to find how to reproduce.
It usually happens when I'm working, and my setup typically includes 4 virtual desktops (2 axes), with WPS Office, Slack, Kontact and Firefox open in each one, opening Telegram and Elisa on occasion too, wherein WPS Office and Kontact are the usual culprits in this, I think Slack too (all on XWayland).
I'll test this workaround next week and report if the issue is no longer reproducible.
Did you find a way to consistently reproduce it? And by
> If i have taskmanager set to show windows from all virtual desktops
Do you mean you set the option "Show only tasks from current Activity"? That's what I use.
> Do you mean you set the option "Show only tasks from current Activity"? That's what I use.
It can be on the same activity or different.
The option I mean is disabling 'Show only tasks: "From current desktop"'
So that you minimize a window on one VD, and click on it on the taskmanager while on another VD
Now I get it, managed to reproduce it consistently. I also used this fix the whole day and it works fine so far. bug 410084 seems related Does someone want to submit that fix as a merge request? Pretty please? :) Ping regarding submitting that patch. :) Retested this bug and it seems it is already fixed! So closing as fixed! Hooray! |