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
Latte Dock
Commits
6009db61
Commit
6009db61
authored
Jun 16, 2022
by
Michail Vourlakos
Browse files
tasks:support plasma 5.25 present windows
BUG:454296
parent
73abdf7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
plasmoid/package/contents/ui/task/TaskMouseArea.qml
View file @
6009db61
...
...
@@ -177,7 +177,18 @@ MouseArea {
activateTask
();
}
}
else
if
(
mouse
.
button
==
Qt
.
LeftButton
){
var
canPresentWindowsIsSupported
=
LatteCore
.
WindowSystem
.
compositingActive
&&
(
root
.
plasmaGreaterThan522
?
backend
.
canPresentWindows
:
backend
.
canPresentWindows
());
var
canPresentWindowsIsSupported
=
false
;
if
(
root
.
plasmaAtLeast525
)
{
//! At least Plasma 5.25 case
canPresentWindowsIsSupported
=
LatteCore
.
WindowSystem
.
compositingActive
&&
backend
.
windowViewAvailable
;
}
else
if
(
root
.
plasmaGreaterThan522
)
{
//! At least Plasma 5.23 case
canPresentWindowsIsSupported
=
LatteCore
.
WindowSystem
.
compositingActive
&&
backend
.
canPresentWindows
;
}
else
{
//! past Plasma versions
canPresentWindowsIsSupported
=
LatteCore
.
WindowSystem
.
compositingActive
&&
backend
.
canPresentWindows
();
}
if
(
!
taskItem
.
isLauncher
&&
!
root
.
disableAllWindowsFunctionality
){
if
(
(
root
.
leftClickAction
===
LatteTasks
.
Types
.
PreviewWindows
&&
isGroupParent
)
...
...
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