mirror of
https://github.com/wezterm/wezterm.git
synced 2026-08-02 18:22:24 +08:00
We can't hope to keep the renderer's idea of the window size consistent with the actual window size when the user can asynchronously change its size at any moment. Therefore, we create a child window which we render to and which we synchronously resize in response to async resizes. Since by default the contents of X11 windows are undefined on resize, we take the additional steps of setting our windows' X11 background color and bit gravity as appropriate.