diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-26 19:59:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-26 19:59:11 +0000 |
| commit | ddbfb3676cce56d289271f8287a4389daea562f3 (patch) | |
| tree | 85d421114ef7452f69041d998d979c227555fd48 /terminal.h | |
| parent | wayland: once again switch to positioning CSDs outside the main surface (diff) | |
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.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 2 |
1 files changed, 2 insertions, 0 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; |
