aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-20 18:58:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-20 18:58:03 +0000
commitf928c1fa682a3dd3728b290d8fa9de79a63538ed (patch)
treea752f300bd75c5b60c519b5fe8b5b388e663484f /terminal.h
parentMerge branch 'dont-require-a-compose-file' into master (diff)
wayland: properly restore window size when being un-tiled
Bind to xdg-shell version 2 if available, as this enables us to track our window’s ‘tiled’ state in the ‘configure’ events. This in turn allows us to stash the ‘old’ window size when being tiled, to be used again when restoring the window size when un-tiled.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index d72fd579..503b5862 100644
--- a/terminal.h
+++ b/terminal.h
@@ -300,8 +300,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 */
+ int stashed_width;
+ int stashed_height;
struct {
int left;
int right;