Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workaround macos fullscreen animation #3625

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

paperdave
Copy link

This would resolve #2886 at the cost of the system menu bar not being able to be visible as part of the capture window.

image

If there is something available in QT to put the window above the menu bar or disable the animation, we should use that instead. I couldn't find an API to do that though -- I feel like i0t has to be possible somehow, since the built-in screenshot command does not have this issue, and System Settings is able to draw overlays that are placed on top of the menu bar (if you have multiple monitors and re-arrange them, a red border surrounds the screen); Maybe this API is reserved for the system apps?

For now, I find this trade off reasonable as the fullscreen exit animation as shown in the issue is incredibly annoying, and most screenshots do not need to annotate the menu bar (you can still screenshot it, but the system bar is in the way for annotations).

This seems to be introduced in macOS 11 or 12, where the API that
showFullScreen plays an animation. The downside of this approach is the
system menu bar is still visible while taking a screenshot, as the
window is no longer actually fullscreen, just borderless covering the
screen.
@mmahmoudian
Copy link
Member

Do I understand it correctly that this PR makes Flameshot to be a "maximized" window but not a full-screen one?

@Untersander
Copy link

I believe this would also fix the issue from #2612 as not capturing the menu bar, for me it would be worth to lose the feature to capture the menu bar but if anybody has a solution how this could be fixed without losing this feature would be nice.

@ElijahLynn
Copy link

Thanks for the initiative!

I would like to suggestions from the community on what other OSS screenshot tooling is there that does this correctly? Maybe then we could see what API or techniques they use.

@mmahmoudian mmahmoudian added Waiting For Info Addressing the issue or merging the PR is halted and we are waiting for more info to be provided. Needs Decision This is something that should be discussed by community MacOS MacOS related labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MacOS MacOS related Needs Decision This is something that should be discussed by community Waiting For Info Addressing the issue or merging the PR is halted and we are waiting for more info to be provided.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Active desktop switches to Desktop 1 after saving/copying a screenshot on MacOS
4 participants