aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-26 19:59:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-26 19:59:11 +0000
commitddbfb3676cce56d289271f8287a4389daea562f3 (patch)
tree85d421114ef7452f69041d998d979c227555fd48 /terminal.h
parentwayland: 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index c25c0245..df3fb06a 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;