mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -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
f70d36ed5d
commit
f928c1fa68
5 changed files with 52 additions and 17 deletions
|
|
@ -314,10 +314,19 @@ struct wl_window {
|
|||
bool is_configured;
|
||||
bool is_fullscreen;
|
||||
bool is_maximized;
|
||||
bool is_tiled_top;
|
||||
bool is_tiled_bottom;
|
||||
bool is_tiled_left;
|
||||
bool is_tiled_right;
|
||||
bool is_tiled; /* At least one of is_tiled_{top,bottom,left,right} is true */
|
||||
struct {
|
||||
bool is_activated;
|
||||
bool is_fullscreen;
|
||||
bool is_maximized;
|
||||
bool is_tiled_top;
|
||||
bool is_tiled_bottom;
|
||||
bool is_tiled_left;
|
||||
bool is_tiled_right;
|
||||
int width;
|
||||
int height;
|
||||
} configure;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue