Commit a5e6c18f authored by John Titor's avatar John Titor Committed by Masum Reza
Browse files

Revert "code-cursor: use chromium's inbuilt x11wayland renderer by defaullt"

This reverts commit 8ceaa4ac.

This is just bad and not intended behaviour.

`x11` is the default, and setting this to "auto" means Electron will choose the platform to run automatically (potentially switching to use Wayland backend).

if an user does not want to run this app on Wayland they should unset `NIXOS_OZONE_WL` instead.

General distro wide (NixOS) expectation is that `NIXOS_OZONE_WL` will make all electron apps use Wayland backend. and this contradicts that.

If the idea is to force X11, due to upstream not having proper Wayland support, this whole line should be removed instead.
https://github.com/NixOS/nixpkgs/pull/401864/files#r2083493979
parent cd560fbe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ stdenvNoCC.mkDerivation {

      wrapProgram $out/bin/cursor \
        --add-flags "--update=false" \
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}} --no-update" \
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}} --no-update" \
        --add-flags ${lib.escapeShellArg commandLineArgs}
    ''}