Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
e4ad5220
Commit
e4ad5220
authored
Feb 11, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
components/mobileshell/qml/taskswitcher/TaskSwitcher.qml
View file @
e4ad5220
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment