mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 05:01:26 -07:00
fix(overlay): keep Hyprland IPC env when forcing mpv X11 backend
- Stop stripping HYPRLAND_INSTANCE_SIGNATURE in applyX11EnvOverrides so the overlay can use hyprctl to lift Hyprland's fullscreen input block - Fixes the overlay becoming unclickable over fullscreen mpv with mpv.backend: x11 - Update launcher and backend tests, add changelog fragment
This commit is contained in:
4 files changed
+13
-4
No files matched your search
@@ -89,10 +89,14 @@ export function shouldForceX11MpvBackend(
|
||||
/**
|
||||
* Strip Wayland/compositor hints and pin the session type to X11 on the given env
|
||||
* object (mutates in place and returns it) so a child mpv process picks XWayland.
|
||||
*
|
||||
* HYPRLAND_INSTANCE_SIGNATURE is kept: the overlay app inherits this env through the
|
||||
* mpv plugin, and Hyprland still manages its XWayland windows. Without hyprctl access
|
||||
* the overlay cannot lift Hyprland's fullscreen input block, so it stays visible but
|
||||
* unclickable over fullscreen mpv.
|
||||
*/
|
||||
export function applyX11EnvOverrides(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv {
|
||||
delete env.WAYLAND_DISPLAY;
|
||||
delete env.HYPRLAND_INSTANCE_SIGNATURE;
|
||||
delete env.SWAYSOCK;
|
||||
env.XDG_SESSION_TYPE = 'x11';
|
||||
return env;
|
||||
|
||||
Reference in new issue
Block a user