From f88c7a19e0600d3a20275dc6eadbcf6f501bf086 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 12:33:47 +0100 Subject: [PATCH] hyprland: prefer native Wayland backends in client apps Adds the standard env-var set so Electron, Mozilla, Qt, SDL and Java apps use Wayland directly instead of XWayland. Improves Vesktop, VSCodium, Zen, and anything Qt; doesn't touch Hearthstone (not in any of these families). Co-Authored-By: Claude Opus 4.7 --- settings/hyprland.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index a4a4991..39b5d83 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -83,6 +83,13 @@ "XCURSOR_SIZE,24" "HYPRCURSOR_THEME,Adwaita" "HYPRCURSOR_SIZE,24" + + # Prefer native Wayland backends where the app supports it. + "ELECTRON_OZONE_PLATFORM_HINT,wayland" # Vesktop, VSCodium + "MOZ_ENABLE_WAYLAND,1" # Zen / Firefox family + "QT_QPA_PLATFORM,wayland;xcb" # Qt apps, XWayland fallback + "SDL_VIDEODRIVER,wayland" # SDL apps + "_JAVA_AWT_WM_NONREPARENTING,1" # Java tiling fix ]; "$mod" = "SUPER";