Skip to content

Fix macOS media viewer disappearing when switching apps - #31463

Open
CrossChEp wants to merge 1 commit into
telegramdesktop:devfrom
CrossChEp:fix/macos-media-viewer-focus
Open

CrossChEp wants to merge 1 commit into
telegramdesktop:devfrom
CrossChEp:fix/macos-media-viewer-focus

Conversation

@CrossChEp

Copy link
Copy Markdown

Fullscreen media previews disappear when Telegram loses focus,
preventing users from keeping an image visible on one display
while working in another application on a second display.

Keep the viewer visible at the normal window level while Telegram
is inactive, allowing other applications to cover it. Restore the
overlay level when Telegram becomes active again.

Validation:

  • Debug build on macOS 27, Apple Silicon.
  • Manually verified the two-display image-viewing scenario.

Before:

before-under-10mb.mp4

After:

after-under-10mb.mp4
#include "ui/platform/ui_platform_window_title.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/rp_window.h"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Oleg Anderzhanov seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants