From 5894cc8a7d1d86865764ca4f99d077e1a1012715 Mon Sep 17 00:00:00 2001 From: YeShanShan Date: Wed, 24 May 2023 15:42:17 +0800 Subject: [PATCH] fix: DockPopupWindow losing active status It causes that child widgets doesn't have focus even though calling setFocus. It was introduced by ec5c447264087420d8ec80a18e7f2bcc4f683a74. because that DArrowRectangle has activateWindow when show. Issue: https://pms.uniontech.com/bug-view-172773.html --- frame/util/dockpopupwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frame/util/dockpopupwindow.cpp b/frame/util/dockpopupwindow.cpp index 0f40246a4..7b9c49233 100644 --- a/frame/util/dockpopupwindow.cpp +++ b/frame/util/dockpopupwindow.cpp @@ -143,6 +143,7 @@ void DockPopupWindow::show(const int x, const int y) move(displayPoint); resize(m_lastWidget->size()); DBlurEffectWidget::show(); + activateWindow(); } void DockPopupWindow::blockButtonRelease()