From 4db93bf1da024b7c4ae05c2bd6ca0355e6b64077 Mon Sep 17 00:00:00 2001 From: nerix Date: Sun, 8 Oct 2023 00:03:14 +0200 Subject: [PATCH] Adjust `DontFocus` window flags on Windows and macOS (#4876) --- CHANGELOG.md | 1 + src/widgets/BaseWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f32eac95b..824490f0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - Bugfix: Fixed too much text being copied when copying chat messages. (#4812, #4830, #4839) - Bugfix: Fixed empty page being added when showing out of bounds dialog. (#4849) - Bugfix: Fixed issue on Windows preventing the title bar from being dragged in the top left corner. (#4873) +- Bugfix: Fixed the input completion popup from disappearing when clicking on it on Windows and macOS. (#4876) - Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791) - Dev: Temporarily disable High DPI scaling on Qt6 builds on Windows. (#4767) - Dev: Tests now run on Ubuntu 22.04 instead of 20.04 to loosen C++ restrictions in tests. (#4774) diff --git a/src/widgets/BaseWindow.cpp b/src/widgets/BaseWindow.cpp index 48e6361ac..33fd49952 100644 --- a/src/widgets/BaseWindow.cpp +++ b/src/widgets/BaseWindow.cpp @@ -57,7 +57,7 @@ BaseWindow::BaseWindow(FlagsEnum _flags, QWidget *parent) this->setWindowFlags(Qt::ToolTip); #else this->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | - Qt::X11BypassWindowManagerHint | + Qt::WindowDoesNotAcceptFocus | Qt::BypassWindowManagerHint); #endif }