Commit 15e0965
committed
Suppress scaler auto-resize in fullscreen via the AppKit query
cocoadisplay_resize_window read settings_current.full_screen twice
to skip the resize when the window is fullscreen — once on the
caller's thread (worker or main) and again after dispatching to
main. The authoritative fullscreen state lives in NSWindow's
styleMask, which is main-thread-only.
Drop the pre-dispatch check and let the main-thread block be the
sole gate. The cost is one extra cheap dispatch when the resize
is going to be skipped anyway; the win is one fewer read of a
mirrored flag whose only purpose was thread-safe access from
worker code.1 parent f8324c1 commit 15e0965
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
| 247 | + | |
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
254 | | - | |
255 | | - | |
256 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
260 | | - | |
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| |||
0 commit comments