From 4c981b845fdf9331109108652e6b198fcdfbd251 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Fri, 25 Feb 2022 21:54:02 +0100 Subject: [PATCH] include/ssd.h remove unnecessary struct definition Instead, just tag the struct so we can reference it. --- include/ssd.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/include/ssd.h b/include/ssd.h index c547b784..fed6ba0c 100644 --- a/include/ssd.h +++ b/include/ssd.h @@ -65,12 +65,6 @@ struct ssd_state_title_width { bool truncated; }; -struct ssd_state_title { - char *text; - struct ssd_state_title_width active; - struct ssd_state_title_width inactive; -}; - struct ssd { bool enabled; struct wlr_scene_tree *tree; @@ -83,7 +77,11 @@ struct ssd { struct { int width; 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; /* An invisble area around the view which allows resizing */