mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
render: remember, and use, last unmaximized size
When the compositor wants us to decide the size (it sends a configure event with width/height == 0), then use the last unmaximized size, if there is one. If there isn't one, use the size from the user configuration.
This commit is contained in:
parent
77b37fb288
commit
ddbfb3676c
2 changed files with 28 additions and 10 deletions
|
|
@ -248,6 +248,8 @@ struct terminal {
|
|||
int scale;
|
||||
int width; /* pixels */
|
||||
int height; /* pixels */
|
||||
int unmaximized_width; /* last unmaximized size, pixels */
|
||||
int unmaximized_height; /* last unmaximized size, pixels */
|
||||
struct {
|
||||
int left;
|
||||
int right;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue