From 7f497b0cdfcce4523467428ca609a228aca3214d Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Mon, 7 Oct 2024 05:20:56 -0400 Subject: [PATCH] fix: set scanPopup flags to what's is needed instead of Qt::Popup --- src/ui/scanpopup.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/scanpopup.cc b/src/ui/scanpopup.cc index cb5158f35..e916a295e 100644 --- a/src/ui/scanpopup.cc +++ b/src/ui/scanpopup.cc @@ -22,14 +22,13 @@ #endif #include "base_type.hh" -/// We use different window flags under Windows and X11 due to slight differences -/// in their behavior on those platforms. + static const Qt::WindowFlags defaultUnpinnedWindowFlags = #if defined( Q_OS_WIN ) Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint #else - Qt::Popup + Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint #endif ;