mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Skip panel window open to improve performance
This commit is contained in:
parent
19fe5a1afe
commit
f97d5db94b
2 changed files with 3 additions and 2 deletions
|
|
@ -48,6 +48,8 @@ NanoShell.FullScreenOverlay {
|
|||
width: Screen.width
|
||||
height: Screen.height
|
||||
|
||||
Component.onCompleted: plasmoid.nativeInterface.panel = window;
|
||||
|
||||
onInitiallyOpenedChanged: {
|
||||
if (initiallyOpened) mainFlickable.focus = true;
|
||||
}
|
||||
|
|
@ -128,7 +130,6 @@ NanoShell.FullScreenOverlay {
|
|||
to: window.closedContentY
|
||||
onFinished: {
|
||||
window.visible = false;
|
||||
window.closed();
|
||||
}
|
||||
}
|
||||
PropertyAnimation {
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ Item {
|
|||
slidingPanel.userInteracting = true;
|
||||
slidingPanel.flickable.contentY = slidingPanel.closedContentY;
|
||||
oldMouseY = mouse.y;
|
||||
slidingPanel.showFullScreen();
|
||||
slidingPanel.visible = true;
|
||||
}
|
||||
onPositionChanged: {
|
||||
slidingPanel.updateOffset(mouse.y - oldMouseY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue