ITADN

macOS: (in window example) redundant redraw request during resizing

#4517OpenRandom-Scientist 创建于 2026-03-16
B - bugDS - appkit
### Description First off, you can observe this bug in the window example, but it probably applies to any consumer that requests a redraw on `SurfaceResized`. I noticed it while working on a different PR. I think this might be because our `drawRect` override sends a redraw request every time the window bounds change, but so does the application after receiving `WindowEvent::SurfaceResized`. or AppKit just calls drawRect twice for some reason. ### macOS version ```shell ProductName: macOS ProductVersion: 12.7.6 BuildVersion: 21H1320 ``` ### Winit version master (0b6b794f012b5e82e0600cd4ed41f84f9fc76023)
2 条评论