mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
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.
This commit is contained in:
parent
9e7783596a
commit
ebd4a32768
5 changed files with 52 additions and 17 deletions
|
|
@ -295,8 +295,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue