appdrawer: fix not getting mouse events sometimes

This commit is contained in:
bbedward committed 2025-11-25 12:25:40 -05:00
1 parent 4035c9cc5f
commit 80f6eb94aa
2 files changed
+16 -19

No files matched your search

@@ -15,8 +15,6 @@ DankPopout {
layerNamespace: "dms:app-launcher"
property var triggerScreen: null
function show() {
open()
}
@@ -25,21 +23,16 @@ DankPopout {
popupHeight: 600
triggerWidth: 40
positioning: ""
screen: triggerScreen
onBackgroundClicked: close()
onShouldBeVisibleChanged: {
if (shouldBeVisible) {
appLauncher.searchQuery = ""
appLauncher.selectedIndex = 0
appLauncher.setCategory(I18n.tr("All"))
Qt.callLater(() => {
if (contentLoader.item && contentLoader.item.searchField) {
contentLoader.item.searchField.text = ""
contentLoader.item.searchField.forceActiveFocus()
}
})
onOpened: {
appLauncher.searchQuery = ""
appLauncher.selectedIndex = 0
appLauncher.setCategory(I18n.tr("All"))
if (contentLoader.item?.searchField) {
contentLoader.item.searchField.text = ""
contentLoader.item.searchField.forceActiveFocus()
}
}
+9 -5
View File
@@ -100,11 +100,15 @@ Item {
return;
closeTimer.stop();
shouldBeVisible = true;
if (useBackgroundWindow)
backgroundWindow.visible = true;
contentWindow.visible = true;
PopoutManager.showPopout(root);
opened();
Qt.callLater(() => {
if (shouldBeVisible) {
if (useBackgroundWindow)
backgroundWindow.visible = true;
contentWindow.visible = true;
PopoutManager.showPopout(root);
opened();
}
});
}
function close() {