Restore original window geometry after tiling

Fixes #391
This commit is contained in:
Consolatis 2022-06-19 01:28:52 +02:00
parent ca56357b5f
commit 172e757cea
3 changed files with 60 additions and 20 deletions

View file

@ -306,6 +306,7 @@ struct view {
bool been_mapped;
bool minimized;
bool maximized;
bool is_tiled;
struct wlr_output *fullscreen;
/* geometry of the wlr_surface contained within the view */
@ -314,6 +315,9 @@ struct view {
/* geometry before maximize */
struct wlr_box unmaximized_geometry;
/* geometry before tiling */
struct wlr_box untiled_geometry;
/*
* margin refers to the space between the extremities of the
* wlr_surface and the max extents of the server-side decorations.