/* 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);
#include "window-rules.h"
#include "workspaces.h"
+static void update_osd(struct server *server);
+
static void
destroy_osd_nodes(struct output *output)
{
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) {
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);
server->osd_state.cycle_view = get_next_cycle_view(server,
server->osd_state.cycle_view, direction);
- osd_update(server);
+ update_osd(server);
}
void
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);