Skip to content

Improve full-screen logic#61

Merged
josuave merged 1 commit intomasterfrom
fullscreen-nonforeground
Apr 12, 2022
Merged

Improve full-screen logic#61
josuave merged 1 commit intomasterfrom
fullscreen-nonforeground

Conversation

@dremin
Copy link
Copy Markdown
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

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