mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
taskswitcher: Ensure window is in maximized state when activating
This commit is contained in:
parent
0dae893cd2
commit
27015d1749
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue