Commit e4ad5220 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

taskswitcher: Ensure window is in maximized state when activating

parent e1d50b5f
Pipeline #136263 passed with stage
in 1 minute and 8 seconds
......@@ -109,6 +109,10 @@ Item {
var idx = tasksModel.index(i, 0)
if (i == id) {
tasksModel.requestActivate(idx);
// ensure the window is in maximized state
if (!tasksModel.data(idx, TaskManager.AbstractTasksModel.IsMaximized)) {
tasksModel.requestToggleMaximized(idx);
}
} else if (!tasksModel.data(idx, TaskManager.AbstractTasksModel.IsMinimized)) {
var geo = tasksModel.data(idx, TaskManager.AbstractTasksModel.ScreenGeometry)
// only minimize the other windows in the same screen
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment