macos: fix font size issue when spawning on external monitor

The main part of the problem is that NSWindow::isZoomed lies to us
sometimes.

This is a relatively gross workaround.

Add missing invalidation after setting the content size; that prevents
janky when dragging the window between monitors.
Removed some redundant Dimensions computation from that method; nothing
ever read it.

refs: https://github.com/wez/wezterm/issues/3503
This commit is contained in:
Wez Furlong committed 2023-04-18 10:35:58 -07:00
1 parent 7dc146708d
commit 44eccffe0c
3 files changed
+29 -14

No files matched your search

+2
View File
@@ -59,6 +59,8 @@ As features stabilize some brief notes about them will accumulate here.
* Windows: closing a window while the debug overlay was active could
leave a lingering wezterm-gui.exe running. #3522
* Windows: inconsistencies with win32 input mode. Thanks to @kreudom! #2235
* macOS: font size is zoomed or window appears empty when first launched on a
secondary monitor with different scaling settings from the primary monitor. #3503
### 20230408-112425-69ae8472