Commit 00b3122
committed
fix(electron): remove hardware-accel disable and x11 force — fixes blank window
The blank window on Hyprland was caused by app.disableHardwareAcceleration()
combined with forced X11/XWayland flags. This triggers a Chromium bug where
the software bitmap presenter fails with 'XGetWindowAttributes failed for
window 1'.
Simplification:
- Remove disableHardwareAcceleration (not needed, CSS fast profile handles visuals)
- Remove all X11/XWayland force flags (let Electron auto-detect)
- Remove transparent/hasShadow/paintWhenInitiallyHidden (unnecessary complexity)
- Use simple ready-to-show + show() for all platforms
The CSS fast render profile (already active) disables transitions and
animations, which eliminates the visual flickering without needing GPU
tweaks.1 parent 9df456d commit 00b3122
1 file changed
Lines changed: 4 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 22 | + | |
30 | 23 | | |
31 | 24 | | |
32 | 25 | | |
| |||
120 | 113 | | |
121 | 114 | | |
122 | 115 | | |
123 | | - | |
124 | | - | |
125 | 116 | | |
126 | 117 | | |
127 | | - | |
128 | 118 | | |
129 | 119 | | |
130 | 120 | | |
| |||
138 | 128 | | |
139 | 129 | | |
140 | 130 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 131 | + | |
| 132 | + | |
152 | 133 | | |
153 | 134 | | |
154 | 135 | | |
155 | 136 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 137 | + | |
163 | 138 | | |
164 | 139 | | |
165 | 140 | | |
| |||
0 commit comments