]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd: rename *_scene_item to *_item
authortokyo4j <hrak1529@gmail.com>
Wed, 29 Oct 2025 18:32:55 +0000 (03:32 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 4 Nov 2025 21:29:13 +0000 (21:29 +0000)
src/osd/osd-classic.c
src/osd/osd-thumbnail.c

index 27c58e17b7a625031abed32e20a0876dcc42a284..4ed05c41793c4359d3016a3215e18266d0310a81 100644 (file)
@@ -18,7 +18,7 @@
 #include "theme.h"
 #include "workspaces.h"
 
-struct osd_classic_scene_item {
+struct osd_classic_item {
        struct view *view;
        struct wlr_scene_tree *normal_tree, *active_tree;
 };
@@ -155,7 +155,7 @@ osd_classic_create(struct output *output, struct wl_array *views)
        /* Draw text for each node */
        struct view **view;
        wl_array_for_each(view, views) {
-               struct osd_classic_scene_item *item =
+               struct osd_classic_item *item =
                        wl_array_add(&output->osd_scene.items, sizeof(*item));
                item->view = *view;
                /*
@@ -218,7 +218,7 @@ error:;
 static void
 osd_classic_update(struct output *output)
 {
-       struct osd_classic_scene_item *item;
+       struct osd_classic_item *item;
        wl_array_for_each(item, &output->osd_scene.items) {
                bool active = item->view == output->server->osd_state.cycle_view;
                wlr_scene_node_set_enabled(&item->normal_tree->node, !active);
index 0b300a2344a19b1ed1463b1ddead8b3301add28d..ad29ebe84f0ed61f0e88874a0e12a64ba90d5dec 100644 (file)
@@ -16,7 +16,7 @@
 #include "theme.h"
 #include "view.h"
 
-struct osd_thumbnail_scene_item {
+struct osd_thumbnail_item {
        struct view *view;
        struct wlr_scene_tree *tree;
        struct scaled_font_buffer *normal_title;
@@ -103,7 +103,7 @@ create_title(struct wlr_scene_tree *parent,
        return buffer;
 }
 
-static struct osd_thumbnail_scene_item *
+static struct osd_thumbnail_item *
 create_item_scene(struct wlr_scene_tree *parent, struct view *view,
                struct output *output)
 {
@@ -124,7 +124,7 @@ create_item_scene(struct wlr_scene_tree *parent, struct view *view,
                return NULL;
        }
 
-       struct osd_thumbnail_scene_item *item =
+       struct osd_thumbnail_item *item =
                wl_array_add(&output->osd_scene.items, sizeof(*item));
        item->tree = wlr_scene_tree_create(parent);
        item->view = view;
@@ -229,7 +229,7 @@ osd_thumbnail_create(struct output *output, struct wl_array *views)
        struct view **view;
        int index = 0;
        wl_array_for_each(view, views) {
-               struct osd_thumbnail_scene_item *item = create_item_scene(
+               struct osd_thumbnail_item *item = create_item_scene(
                        output->osd_scene.tree, *view, output);
                if (!item) {
                        break;
@@ -265,7 +265,7 @@ osd_thumbnail_create(struct output *output, struct wl_array *views)
 static void
 osd_thumbnail_update(struct output *output)
 {
-       struct osd_thumbnail_scene_item *item;
+       struct osd_thumbnail_item *item;
        wl_array_for_each(item, &output->osd_scene.items) {
                bool active = (item->view == output->server->osd_state.cycle_view);
                wlr_scene_node_set_enabled(&item->active_bg->tree->node, active);