zed/crates/gpui
Max Brunsfeld 802911d742
Fix AppKit screen coordinate conversion leading to wrong window bounds (#2856)
Fixes
https://linear.app/zed-industries/issue/Z-1510/join-project-notification-takes-up-full-screen-on-a-second-monitor

There were multiple mistakes in the positioning of Zed's notification
windows, one of which lead to the notifications taking up the full
screen on secondary displays 😱 .
* Wrong sign for the vertical padding (moving the window *upward*
instead of downward)
* Using the screen's full frame instead of its "visible frame" (which
accounts for app menu bar)
* Wrong coordinate translation between our coordinates and AppKit's
coordinates. Regardless of which display a given window appears on, the
coordinate translation needs to use the height of the *main* display.

Release Notes:

- Fixed a bug where call notifications were accidentally full-screen on
all displays except the main display.
2023-08-17 16:24:46 -07:00
..
examples move component into gpui 2023-08-15 15:44:59 -07:00
src Fix AppKit screen coordinate conversion leading to wrong window bounds (#2856) 2023-08-17 16:24:46 -07:00
tests Move gpui derives tests into gpui crate to avoid dependency cycles 2023-08-16 10:19:20 +03:00
build.rs Use a hand-coded parser for keymap context predicates 2023-01-16 15:53:49 -08:00
Cargo.toml WIP 2023-08-06 12:45:31 -06:00