mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
appdrawer: fix not getting mouse events sometimes
This commit is contained in:
@@ -15,8 +15,6 @@ DankPopout {
|
|||||||
|
|
||||||
layerNamespace: "dms:app-launcher"
|
layerNamespace: "dms:app-launcher"
|
||||||
|
|
||||||
property var triggerScreen: null
|
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
open()
|
open()
|
||||||
}
|
}
|
||||||
@@ -25,21 +23,16 @@ DankPopout {
|
|||||||
popupHeight: 600
|
popupHeight: 600
|
||||||
triggerWidth: 40
|
triggerWidth: 40
|
||||||
positioning: ""
|
positioning: ""
|
||||||
screen: triggerScreen
|
|
||||||
|
|
||||||
onBackgroundClicked: close()
|
onBackgroundClicked: close()
|
||||||
|
|
||||||
onShouldBeVisibleChanged: {
|
onOpened: {
|
||||||
if (shouldBeVisible) {
|
appLauncher.searchQuery = ""
|
||||||
appLauncher.searchQuery = ""
|
appLauncher.selectedIndex = 0
|
||||||
appLauncher.selectedIndex = 0
|
appLauncher.setCategory(I18n.tr("All"))
|
||||||
appLauncher.setCategory(I18n.tr("All"))
|
if (contentLoader.item?.searchField) {
|
||||||
Qt.callLater(() => {
|
contentLoader.item.searchField.text = ""
|
||||||
if (contentLoader.item && contentLoader.item.searchField) {
|
contentLoader.item.searchField.forceActiveFocus()
|
||||||
contentLoader.item.searchField.text = ""
|
|
||||||
contentLoader.item.searchField.forceActiveFocus()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,11 +100,15 @@ Item {
|
|||||||
return;
|
return;
|
||||||
closeTimer.stop();
|
closeTimer.stop();
|
||||||
shouldBeVisible = true;
|
shouldBeVisible = true;
|
||||||
if (useBackgroundWindow)
|
Qt.callLater(() => {
|
||||||
backgroundWindow.visible = true;
|
if (shouldBeVisible) {
|
||||||
contentWindow.visible = true;
|
if (useBackgroundWindow)
|
||||||
PopoutManager.showPopout(root);
|
backgroundWindow.visible = true;
|
||||||
opened();
|
contentWindow.visible = true;
|
||||||
|
PopoutManager.showPopout(root);
|
||||||
|
opened();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
|
|||||||
Reference in New Issue
Block a user