ZIm/crates/gpui/src/platform/windows
Max Brunsfeld d0de81b0b4
windows: Handle scale factor change while window is maximized (#35686)
Fixes https://github.com/zed-industries/zed/issues/33257

Previously, the scale-factor-change-handling logic relied on
`SetWindowPos` enqueuing a `WM_SIZE` window event. But that does not
happen when the window is maximized. So when the scale factor changed,
maximized windows neglected to call their `resize` callback, and would
misinterpret the positions of mouse events.

This PR adds special logic for maximized windows, to ensure that the
size is updated appropriately.

Release Notes:

- N/A
2025-08-05 16:42:17 -07:00
..
clipboard.rs windows: Remove SmartGlobal (#30366) 2025-05-09 20:05:53 +08:00
color_text_raster.hlsl Rasterize glyphs without D2D (#35376) 2025-08-01 19:46:09 +02:00
destination_list.rs Reduce allocations (#31223) 2025-05-23 14:25:17 +03:00
direct_write.rs Rasterize glyphs without D2D (#35376) 2025-08-01 19:46:09 +02:00
directx_atlas.rs Rasterize glyphs without D2D (#35376) 2025-08-01 19:46:09 +02:00
directx_renderer.rs Rasterize glyphs without D2D (#35376) 2025-08-01 19:46:09 +02:00
dispatcher.rs Fix local task dropped on the wrong thread (#28290) 2025-04-08 11:54:51 -06:00
display.rs Reduce allocations (#31223) 2025-05-23 14:25:17 +03:00
events.rs windows: Handle scale factor change while window is maximized (#35686) 2025-08-05 16:42:17 -07:00
keyboard.rs windows: Fix an issue where dead keys that require holding shift didn’t work properly (#34264) 2025-07-11 17:19:23 +08:00
platform.rs Minor stylistic cleanup in Windows platform (#35503) 2025-08-04 11:22:49 -07:00
shaders.hlsl Rasterize glyphs without D2D (#35376) 2025-08-01 19:46:09 +02:00
system_settings.rs windows: More precise handling of WM_SETTINGCHANGE and appearance updates (#33829) 2025-07-03 17:27:27 +08:00
util.rs windows: More precise handling of WM_SETTINGCHANGE and appearance updates (#33829) 2025-07-03 17:27:27 +08:00
window.rs Fix open with zed not focusing window (#35645) 2025-08-05 19:09:04 +02:00
wrapper.rs windows: Remove SmartGlobal (#30366) 2025-05-09 20:05:53 +08:00