mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-14 04:46:07 -08:00
fix(overlay): keep overlay mapped during Hyprland/Sway fullscreen (#276)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user