mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +00:00
appdrawer: avoid entering edit mode while in an half empty drawer
This commit is contained in:
parent
be159dadc1
commit
8dd6133582
2 changed files with 11 additions and 1 deletions
|
|
@ -46,4 +46,9 @@ PlasmaCore.ColorScope {
|
||||||
onClicked: root.switchToGridRequested()
|
onClicked: root.switchToGridRequested()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//HACK: Here only to steal inputs the would normally be delivered to home
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,12 @@ AbstractAppDrawer {
|
||||||
contentItem: GridView {
|
contentItem: GridView {
|
||||||
id: gridView
|
id: gridView
|
||||||
clip: true
|
clip: true
|
||||||
interactive: root.homeScreenState.appDrawerInteractive
|
|
||||||
|
/*
|
||||||
|
* HACK: When the number of apps is less than the one that would fit in the first shown part of the drawer, make
|
||||||
|
* this flickable interactive, in order to steal inputs that would normally be delivered to home.
|
||||||
|
*/
|
||||||
|
interactive: contentHeight <= height ? true : root.homeScreenState.appDrawerInteractive
|
||||||
|
|
||||||
cellWidth: root.contentWidth / Math.floor(root.contentWidth / ((root.availableCellHeight - root.reservedSpaceForLabel) + PlasmaCore.Units.smallSpacing*4))
|
cellWidth: root.contentWidth / Math.floor(root.contentWidth / ((root.availableCellHeight - root.reservedSpaceForLabel) + PlasmaCore.Units.smallSpacing*4))
|
||||||
cellHeight: root.availableCellHeight
|
cellHeight: root.availableCellHeight
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue