mirror of
https://github.com/labwc/labwc.git
synced 2026-02-16 22:05:27 -05:00
ssd: add optional omnipresent button
This commit is contained in:
parent
186a07be9b
commit
b7bccc8026
12 changed files with 165 additions and 52 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue