From: Johan Malm Date: Mon, 20 Sep 2021 21:07:19 +0000 (+0100) Subject: desktop.c: make topmost_mapped_view() private X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=e4b51fc5e8e92943f232d3c1e9ea2e6c12ea81d0;p=proto%2Flabwc.git desktop.c: make topmost_mapped_view() private --- diff --git a/include/labwc.h b/include/labwc.h index 84b90e66..0bafa478 100644 --- a/include/labwc.h +++ b/include/labwc.h @@ -337,7 +337,6 @@ void desktop_focus_view(struct seat *seat, struct view *view); * Note: If !current, the server->views second focusable view is returned */ struct view *desktop_cycle_view(struct server *server, struct view *current); -struct view *topmost_mapped_view(struct server *server); struct view *focused_view(struct server *server); void desktop_focus_topmost_mapped_view(struct server *server); bool isfocusable(struct view *view); diff --git a/src/desktop.c b/src/desktop.c index ca8b99e2..5ec31de8 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -197,7 +197,7 @@ has_mapped_view(struct wl_list *wl_list) return false; } -struct view * +static struct view * topmost_mapped_view(struct server *server) { if (!has_mapped_view(&server->views)) {