fix(overlay): keep overlay mapped during Hyprland/Sway fullscreen (#276)

This commit is contained in:
sudacode authored and GitHub committed 2026-09-29 18:39:55 -07:00
1 parent 953abdf42a
commit 4e43c5c6e1
4 files changed
+74 -3

No files matched your search

@@ -52,8 +52,12 @@ function refreshLinuxVisibleOverlayAfterMpvFullscreenChange(
return;
}
mainWindow.hide();
mainWindow.showInactive();
// Hyprland placement can restack in place. Remapping the overlay can
// take focus from mpv and make Hyprland cancel the fullscreen transition.
if (!process.env.HYPRLAND_INSTANCE_SIGNATURE) {
mainWindow.hide();
mainWindow.showInactive();
}
if (deps.getOverlayInteractionActive?.() === true) {
mainWindow.setIgnoreMouseEvents(false);
} else {