]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd: make osd_update() private
authortokyo4j <hrak1529@gmail.com>
Fri, 14 Mar 2025 07:53:18 +0000 (16:53 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 16 Mar 2025 11:15:00 +0000 (11:15 +0000)
include/osd.h
src/osd.c

index 8b206953d6e8f5f4e5b936c9ada25fc5067cde9f..13c67497c66c392e4976079db45de7f462398530 100644 (file)
@@ -44,9 +44,6 @@ void osd_begin(struct server *server, enum lab_cycle_dir direction);
 /* Cycle the selected view in the window switcher */
 void osd_cycle(struct server *server, enum lab_cycle_dir direction);
 
-/* Updates onscreen display 'alt-tab' buffer */
-void osd_update(struct server *server);
-
 /* Closes the OSD */
 void osd_finish(struct server *server);
 
index 0e62ea2d57a870f42b52a1256eae983089779e0c..a89490b8943048dcd833ce70fefd3d10aa94b5a3 100644 (file)
--- a/src/osd.c
+++ b/src/osd.c
@@ -21,6 +21,8 @@
 #include "window-rules.h"
 #include "workspaces.h"
 
+static void update_osd(struct server *server);
+
 static void
 destroy_osd_nodes(struct output *output)
 {
@@ -119,7 +121,7 @@ osd_on_view_destroy(struct view *view)
 
        if (osd_state->cycle_view) {
                /* Update the OSD to reflect the view has now gone. */
-               osd_update(view->server);
+               update_osd(view->server);
        }
 
        if (view->scene_tree) {
@@ -172,7 +174,7 @@ osd_begin(struct server *server, enum lab_cycle_dir direction)
 
        seat_focus_override_begin(&server->seat,
                LAB_INPUT_STATE_WINDOW_SWITCHER, LAB_CURSOR_DEFAULT);
-       osd_update(server);
+       update_osd(server);
 
        /* Update cursor, in case it is within the area covered by OSD */
        cursor_update_focus(server);
@@ -185,7 +187,7 @@ osd_cycle(struct server *server, enum lab_cycle_dir direction)
 
        server->osd_state.cycle_view = get_next_cycle_view(server,
                server->osd_state.cycle_view, direction);
-       osd_update(server);
+       update_osd(server);
 }
 
 void
@@ -430,8 +432,8 @@ display_osd(struct output *output, struct wl_array *views)
        wlr_scene_node_set_enabled(&output->osd_tree->node, true);
 }
 
-void
-osd_update(struct server *server)
+static void
+update_osd(struct server *server)
 {
        struct wl_array views;
        wl_array_init(&views);