ssd: add optional omnipresent button

This commit is contained in:
Andrew J. Hesford 2024-08-23 12:45:14 -04:00 committed by Consolatis
parent 186a07be9b
commit b7bccc8026
12 changed files with 165 additions and 52 deletions

View file

@ -48,9 +48,18 @@ struct ssd {
* don't update things we don't have to.
*/
struct {
bool was_shaded; /* To toggle icon on shade */
bool was_maximized; /* To un-round corner buttons and toggle icon on maximize */
bool was_tiled_not_maximized; /* To un-round corner buttons */
/* Button icons need to be swapped on shade or omnipresent toggles */
bool was_shaded;
bool was_omnipresent;
/*
* Corners need to be (un)rounded when toggling tiling or
* maximization, and the button needs to be swapped on
* maximization toggles.
*/
bool was_maximized;
bool was_tiled_not_maximized;
struct wlr_box geometry;
struct ssd_state_title {
char *text;