From 38c994be49562669c6f4b591ca4b6d922b3724d0 Mon Sep 17 00:00:00 2001 From: qooq69 <52359859+qooq69@users.noreply.github.com> Date: Sat, 16 Sep 2023 22:15:01 +0200 Subject: [PATCH] Fixed Usercard Popup not floating on tiling WMs on Linux (#3511) --- CHANGELOG.md | 1 + src/widgets/DraggablePopup.cpp | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95a282ff5..cf42311a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Bugfix: Fixed a performance issue when displaying replies to certain messages. (#4807) - Bugfix: Fixed a data race when disconnecting from Twitch PubSub. (#4771) - Bugfix: Fixed `/shoutout` command not working with usernames starting with @'s (e.g. `/shoutout @forsen`). (#4800) +- Bugfix: Fixed Usercard popup not floating on tiling WMs on Linux when "Automatically close user popup when it loses focus" setting is enabled. (#3511) - Bugfix: Fixed selection of tabs after closing a tab when using "Live Tabs Only". (#4770) - Bugfix: Fixed input in reply thread popup losing focus when dragging. (#4815) - Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791) diff --git a/src/widgets/DraggablePopup.cpp b/src/widgets/DraggablePopup.cpp index 1a38d13f1..84a57c0f7 100644 --- a/src/widgets/DraggablePopup.cpp +++ b/src/widgets/DraggablePopup.cpp @@ -13,15 +13,23 @@ namespace chatterino { namespace { #ifdef Q_OS_LINUX - FlagsEnum popupFlags{BaseWindow::Dialog, - BaseWindow::EnableCustomFrame}; + FlagsEnum popupFlags{ + BaseWindow::Dialog, + BaseWindow::EnableCustomFrame, + }; FlagsEnum popupFlagsCloseAutomatically{ - BaseWindow::EnableCustomFrame}; + BaseWindow::Dialog, + BaseWindow::EnableCustomFrame, + }; #else - FlagsEnum popupFlags{BaseWindow::EnableCustomFrame}; + FlagsEnum popupFlags{ + BaseWindow::EnableCustomFrame, + }; FlagsEnum popupFlagsCloseAutomatically{ - BaseWindow::EnableCustomFrame, BaseWindow::Frameless, - BaseWindow::FramelessDraggable}; + BaseWindow::EnableCustomFrame, + BaseWindow::Frameless, + BaseWindow::FramelessDraggable, + }; #endif } // namespace