Commit 9df456d
committed
fix(electron): force XWayland for Hyprland/Wayland compositors
Hyprland uses a custom Wayland compositor that is incompatible with
Electron's native Wayland backend. The window flickers because
Hyprland tries to apply entrance animations to a Wayland-native
Electron surface that keeps resizing during initial page load.
Force XWayland via two mechanisms:
- --ozone-platform=x11 (Chromium backend)
- ELECTRON_OZONE_PLATFORM_HINT=x11 (Electron runtime)
This makes Electron run through XWayland on Hyprland, which is
fully stable and eliminates the flickering.1 parent 2815780 commit 9df456d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments