mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
port back to Window
avoid some crash?
This commit is contained in:
parent
33ba92fee3
commit
38c860f451
1 changed files with 4 additions and 7 deletions
|
|
@ -22,11 +22,8 @@ import QtQuick.Layouts 1.1
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
|
||||||
PlasmaCore.Dialog {
|
Window {
|
||||||
id: window
|
id: window
|
||||||
//flags: Qt.X11BypassWindowManagerHint
|
|
||||||
backgroundHints: PlasmaCore.Dialog.NoBackground
|
|
||||||
location: PlasmaCore.Types.TopEdge
|
|
||||||
|
|
||||||
property int offset: 0
|
property int offset: 0
|
||||||
property int overShoot: units.gridUnit * 2
|
property int overShoot: units.gridUnit * 2
|
||||||
|
|
@ -53,11 +50,11 @@ PlasmaCore.Dialog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mainItem: MouseArea {
|
MouseArea {
|
||||||
id: mouseArea
|
id: mouseArea
|
||||||
y: 0
|
y: 0
|
||||||
Layout.minimumWidth: Screen.width
|
width: Screen.width
|
||||||
Layout.minimumHeight: Screen.height
|
height: Screen.height
|
||||||
//clip: true
|
//clip: true
|
||||||
state: "closed"
|
state: "closed"
|
||||||
drag.filterChildren: true
|
drag.filterChildren: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue