Fullscreen electron apps - small 1/4 screen

Has anyone seen this before?

Just to illustrate areas of config that may contribute:

vs code

home.file.".config/code-flags.conf".text = ''
        --enable-features=UseOzonePlatform
        --ozone-platform=wayland
        --enable-features=WaylandWindowDecorations
      '';

session variables

home.sessionVariables = {
        ELECTRON_OZONE_PLATFORM_HINT = "wayland";
        NIXOS_OZONE_WL = 1; # fixed electron apps blurriness
      };

electron flags

home.file.".config/electron-flags.conf".text = ''
        --enable-features=UseOzonePlatform
        --ozone-platform=wayland
        --enable-features=WaylandWindowDecorations
        --force-device-scale-factor=1
      '';

The apps I have noticed this on so far:

  • 1password
  • vscode
  • element matrix client
  • slack

Any ideas?

Thank you.

OK, additional info.

I just realised my Desktop is not doing this, and it is using the same modules.

Differences off of the top of my head.

  • Desktop: AMD GPU, Laptop: Hybrid Intel/Nvidia
  • screen resolution

Perhaps this is the cause?

When I disabled it, it did not make a difference. I wonder if I did not take through doing some bad garbage collection, etc.

Wait - I also just realized the issue is not happening on my tower - which is also using this module to config.

On the problematic machine, are you using a proprietary NVIDIA driver?

I am! (Intel/Nvidia) Just got it working. Why is that?

My tower has an AMD GPU.

It’s sometimes a dead-end because the source is not available.

OK, I narrowed this down to being related to Stylix. When I disable Stylix, the issue goes away.