| Summary: | Windows with focus that are not on top are minimized when clicked in the task manager | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Chris Spiegel <cspiegel> |
| Component: | Task Manager and Icons-Only Task Manager widgets | Assignee: | Eike Hein <hein> |
| Status: | CONFIRMED --- | ||
| Severity: | minor | CC: | hannah.rittich, nate, noahadvs, nplatis, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.7.2 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Chris Spiegel
2016-07-21 15:51:11 UTC
Can't reproduce at all. The lower window gets raised and focused, but not minimized. I can still reproduce on 5.11.4. You don't even need to activate raise-on-hover, just do this: 1. Turn on or continue to use focus Follows Mouse 2. Move one window partially in front but not completely covering another 3. Click on that window's Task Manager button It gets minimized, not raised. *** Bug 401462 has been marked as a duplicate of this bug. *** In order to fix this, the `activateTask()` function in plasma-desktop/applets/taskmanager/package/contents/ui/code/tools.js will have to be patched. I think the relevant part is this part at the bottom of the function.
```
function activateTask(index, model, modifiers, task, plasmoid, tasks) {
// [snip]
} else {
if (model.IsMinimized === true) {
tasks.tasksModel.requestToggleMinimized(index);
tasks.tasksModel.requestActivate(index);
} else if (model.IsActive === true && plasmoid.configuration.minimizeActiveTaskOnClick) { // This needs to account for stacking order
tasks.tasksModel.requestToggleMinimized(index);
} else {
tasks.tasksModel.requestActivate(index);
}
}
}
```
It's also worth noting that if we do want to fix this, the "Clicking active task: [x] Minimizes the task" checkbox in the config dialog will need to be changed in order to be truthful. |