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

Improve full-screen logic #61

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Improve full-screen logic #61

merged 1 commit into from
Apr 12, 2022

Conversation

dremin
Copy link
Collaborator

@dremin dremin commented Apr 12, 2022

Currently, FullScreenHelper will only remove a full-screen window from the full-screen windows list if it is no longer full-screen or if it has moved to another monitor. This means that a window obstructing it does not remove it from the full-screen list.

This changes the logic to instead only keep a window in the full-screen windows list in two scenarios:

  • If it is foreground, full-screen, and hasn't moved to another monitor
  • If it is still full-screen, no longer in the foreground, but the new foreground window is on another monitor

Effectively this means that full-screen windows will stay in the full-screen list unless they are obstructed, which is the desired behavior.

This should fix cairoshell/cairoshell#495 and dremin/RetroBar#171.

@dremin dremin requested a review from josuave April 12, 2022 04:26
@josuave josuave merged commit 2302046 into master Apr 12, 2022
@josuave josuave deleted the fullscreen-nonforeground branch April 12, 2022 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cairo remains in full-screen mode when full-screen app is not frontmost
2 participants