From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Fri, 25 Feb 2022 20:54:02 +0000 (+0100) Subject: include/ssd.h remove unnecessary struct definition X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=4c981b845fdf9331109108652e6b198fcdfbd251;p=proto%2Flabwc.git include/ssd.h remove unnecessary struct definition Instead, just tag the struct so we can reference it. --- 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 */