1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00
wezterm/wezterm-gui/src
Wez Furlong 79165617b1 window: add WindowState concept
WindowState is a bitfield that can represent maximized, full screen
and hidden window states.

WindowState is passed along with resize events, improving on the
prior basic is_full_screen boolean by representing the other states.

Notably, WindowState::MAXIMIZED is used to represent a state where
the window's size is constrained by some window environment function;
it could be due to the window being maximized in either or both the
vertical or horizontal directions, or by the window being in a tiled
state on any edge.

When the window is MAXIMIZED, wezterm will behave as though
`adjust_window_size_when_changing_font_size = false` because it knows
that it cannot adjust the window size in that state.

This potentially helps with #695, depending on whether the window
manager propagates this state information to wezterm.  Gnome/mutter
does a good job at this with both X11 and Wayland, but I couldn't get
sway to report these states and I don't know of any other tiling wm
that I can easily install and use on fedora, so there's a question
mark around that.
2021-08-06 18:56:37 -07:00
..
overlay plumb appearance change event -> reload on macos 2021-07-18 00:01:53 -07:00
scripting window: add WindowState concept 2021-08-06 18:56:37 -07:00
termwindow window: add WindowState concept 2021-08-06 18:56:37 -07:00
cache.rs instrument cache hit rates, fix duration histograms 2021-07-07 17:21:18 -07:00
customglyph.rs refactor: move cursor sprite generation to be dynamic 2021-08-04 10:01:21 -07:00
frontend.rs mux client: connect all mux panes in window to clipboard when attaching 2021-05-31 08:40:19 -07:00
glyph-frag.glsl Restore bg_color to the vertex 2021-07-31 10:44:27 -07:00
glyph-vertex.glsl Restore bg_color to the vertex 2021-07-31 10:44:27 -07:00
glyphcache.rs gui: fixup window transparency 2021-08-06 13:07:50 -07:00
main.rs refactor: split custom glyph code into its own file 2021-08-01 22:06:04 -07:00
markdown.rs move image decoding into termwiz 2021-08-02 21:35:50 -07:00
quad.rs Restore bg_color to the vertex 2021-07-31 10:44:27 -07:00
renderstate.rs Tidy up outputs_srgb option 2021-08-05 20:33:56 -07:00
scrollbar.rs refactor: pull gui sources up one level 2021-02-28 00:11:17 -08:00
selection.rs fix panic when double-click-selection drags across line boundary 2021-05-09 08:17:56 -07:00
shapecache.rs remove cluster from GlyphPosition 2021-07-09 22:46:16 -07:00
stats.rs instrument cache hit rates, fix duration histograms 2021-07-07 17:21:18 -07:00
tabbar.rs termwiz: parse and encode kitty image protocol 2021-07-28 09:04:37 -07:00
update.rs move image decoding into termwiz 2021-08-02 21:35:50 -07:00
utilsprites.rs refactor: move cursor sprite generation to be dynamic 2021-08-04 10:01:21 -07:00