include/ssd.h remove unnecessary struct definition

Instead, just tag the struct so we can reference it.
This commit is contained in:
Consolatis 2022-02-25 21:54:02 +01:00 committed by Johan Malm
parent 5f62f2ba99
commit 4c981b845f

View file

@ -65,12 +65,6 @@ struct ssd_state_title_width {
bool truncated; bool truncated;
}; };
struct ssd_state_title {
char *text;
struct ssd_state_title_width active;
struct ssd_state_title_width inactive;
};
struct ssd { struct ssd {
bool enabled; bool enabled;
struct wlr_scene_tree *tree; struct wlr_scene_tree *tree;
@ -83,7 +77,11 @@ struct ssd {
struct { struct {
int width; int width;
int height; int height;
struct ssd_state_title title; struct ssd_state_title {
char *text;
struct ssd_state_title_width active;
struct ssd_state_title_width inactive;
} title;
} state; } state;
/* An invisble area around the view which allows resizing */ /* An invisble area around the view which allows resizing */