diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-20 18:58:03 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-20 18:58:03 +0000 |
| commit | f928c1fa682a3dd3728b290d8fa9de79a63538ed (patch) | |
| tree | a752f300bd75c5b60c519b5fe8b5b388e663484f /terminal.h | |
| parent | Merge 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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
