Skip to content

Commit

Permalink
Ensure closing is supported for running in background
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Sep 12, 2023
1 parent e5227a7 commit dfa5386
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Telegram/SourceFiles/platform/linux/specific_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@ bool SkipTaskbarSupported() {
bool RunInBackground() {
const auto layout = Ui::Platform::TitleControlsLayout();
using TitleControl = Ui::Platform::TitleControl;
return !ranges::contains(layout.left, TitleControl::Minimize)
return (ranges::contains(layout.left, TitleControl::Close)
|| ranges::contains(layout.right, TitleControl::Close))
&& !ranges::contains(layout.left, TitleControl::Minimize)
&& !ranges::contains(layout.right, TitleControl::Minimize);
}

Expand Down

0 comments on commit dfa5386

Please sign in to comment.