Skip to content

fix(PiP): Mac OS minimize not working#16904

Merged
hristoterezov merged 1 commit intomasterfrom
fix-electron-minimize
Feb 5, 2026
Merged

fix(PiP): Mac OS minimize not working#16904
hristoterezov merged 1 commit intomasterfrom
fix-electron-minimize

Conversation

@hristoterezov
Copy link
Member

When we minimize the meeting window on Mac OS via the yellow button, 2 requests for PiP are triggered one after another because of the blur and the visibilitychange handlers. If we implement in Electron to focus the meeting window on the pipLeft event this will lead to the first request to exit triggering the pipLeft event after the second request is triggered which will actually bring the window back because we focus on pipLeft event. This behaviour breaks the ability to minimize a window.

The current fix will prevent us for sending 2 requests for PiP one after another by skipping the second unnecessary request.

When we minimize the meeting window on Mac OS via the yellow button, 2 requests for PiP are triggered one after another because of the blur and the visibilitychange handlers. If we implement in Electron to focus the meeting window on the pipLeft event this will lead to the first request to exit triggering the pipLeft event after the second request is triggered which will actually bring the window back because we focus on pipLeft event. This behaviour breaks the ability to minimize a window.

The current fix will prevent us for sending 2 requests for PiP one after another by skipping the second unnecessary request.
@hristoterezov hristoterezov merged commit 3d53f2e into master Feb 5, 2026
10 checks passed
@hristoterezov hristoterezov deleted the fix-electron-minimize branch February 5, 2026 18:36
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.

3 participants