Skip to content
GitLab
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
a462ad42
Commit
a462ad42
authored
May 11, 2022
by
Yari Polla
Committed by
Devin Lin
May 14, 2022
Browse files
taskswitcher: fixes for opening phase
parent
4b1c8dcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/mobileshell/qml/taskswitcher/Task.qml
View file @
a462ad42
...
...
@@ -221,15 +221,20 @@ Item {
// app icon (behind window preview in-case it doesn't load)
TaskIcon
{
// decrease the opacity faster
opacity
:
delegate
.
opacity
opacity
:
pipeWireLoader
.
item
&&
pipeWireLoader
.
item
.
uuid
?
0
:
delegate
.
opacity
anchors.centerIn
:
parent
}
// attempt to load window preview
Loader
{
id
:
pipeWireLoader
active
:
taskSwitcher
.
visible
||
taskSwitcher
.
tasksModel
.
taskReorderingEnabled
anchors.fill
:
parent
source
:
Qt
.
resolvedUrl
(
"
./Thumbnail.qml
"
)
asynchronous
:
true
onLoaded
:
this
.
item
.
refresh
()
}
// darken effect
...
...
components/mobileshell/qml/taskswitcher/Thumbnail.qml
View file @
a462ad42
...
...
@@ -11,19 +11,25 @@ import QtQuick.Window 2.2
import
org
.
kde
.
taskmanager
0.1
as
TaskManager
TaskManager.PipeWireSourceItem
{
visible
:
Window
.
visibility
!==
Window
.
Hidden
visible
:
false
nodeId
:
waylandItem
.
nodeId
// Visible only if casting has begun
onNodeIdChanged
:
{
visible
=
true
;
}
readonly
property
string
uuid
:
waylandItem
.
uuid
onVisibleChanged
:
{
if
(
visible
)
{
if
(
model
.
WinIdList
)
{
waylandItem
.
uuid
=
model
.
WinIdList
[
0
];
}
function
refresh
()
{
if
(
model
.
WinIdList
)
{
waylandItem
.
uuid
=
model
.
WinIdList
[
0
];
}
}
TaskManager.ScreencastingRequest
{
id
:
waylandItem
uuid
:
""
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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