mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
taskpanel: Don't overlay over top panel
This commit is contained in:
parent
0d9b8e5207
commit
c02d6418a4
1 changed files with 6 additions and 2 deletions
|
|
@ -61,7 +61,11 @@ PlasmaCore.ColorScope {
|
||||||
id: maximizeTimer
|
id: maximizeTimer
|
||||||
running: false
|
running: false
|
||||||
interval: 100
|
interval: 100
|
||||||
onTriggered: plasmoid.Window.window.maximize()
|
onTriggered: {
|
||||||
|
// maximize first, then we can apply offsets (otherwise they are overridden)
|
||||||
|
plasmoid.Window.window.maximize()
|
||||||
|
plasmoid.Window.window.offset = intendedWindowOffset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// use a timer so that rotation events are faster (offload the panel movement to later, after everything is figured out)
|
// use a timer so that rotation events are faster (offload the panel movement to later, after everything is figured out)
|
||||||
|
|
@ -74,10 +78,10 @@ PlasmaCore.ColorScope {
|
||||||
|
|
||||||
function setWindowProperties() {
|
function setWindowProperties() {
|
||||||
// plasmoid.Window.window is assumed to be plasma-workspace "PanelView" component
|
// plasmoid.Window.window is assumed to be plasma-workspace "PanelView" component
|
||||||
|
plasmoid.Window.window.maximize(); // maximize first, then we can apply offsets (otherwise they are overridden)
|
||||||
plasmoid.Window.window.offset = intendedWindowOffset;
|
plasmoid.Window.window.offset = intendedWindowOffset;
|
||||||
plasmoid.Window.window.thickness = intendedWindowThickness;
|
plasmoid.Window.window.thickness = intendedWindowThickness;
|
||||||
plasmoid.Window.window.location = intendedWindowLocation;
|
plasmoid.Window.window.location = intendedWindowLocation;
|
||||||
plasmoid.Window.window.maximize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue