]> git.mdlowis.com Git - proto/labwc.git/commitdiff
include/ssd.h remove unnecessary struct definition
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 25 Feb 2022 20:54:02 +0000 (21:54 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 25 Feb 2022 21:52:10 +0000 (21:52 +0000)
Instead, just tag the struct so we can reference it.

include/ssd.h

index c547b78476facbb67e44d805a1c92863c66b9303..fed6ba0c06ceedd81a9d789196e51e0269af53d3 100644 (file)
@@ -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 */