From 849cda7021c8cd25b72f48911280de84e77fd1a1 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Mon, 30 Dec 2019 21:46:18 -0700 Subject: [PATCH] Rename focus_view to view_focus For consistency with the other functions. --- include/desktop/view.h | 2 +- kiwmi/desktop/view.c | 2 +- kiwmi/desktop/xdg_shell.c | 2 +- kiwmi/luak.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/desktop/view.h b/include/desktop/view.h index 1c4b370..e023990 100644 --- a/include/desktop/view.h +++ b/include/desktop/view.h @@ -70,7 +70,7 @@ struct wlr_surface *view_surface_at( double *sub_x, double *sub_y); -void focus_view(struct kiwmi_view *view); +void view_focus(struct kiwmi_view *view); struct kiwmi_view *view_at( struct kiwmi_desktop *desktop, double lx, diff --git a/kiwmi/desktop/view.c b/kiwmi/desktop/view.c index 9e47f52..709473b 100644 --- a/kiwmi/desktop/view.c +++ b/kiwmi/desktop/view.c @@ -54,7 +54,7 @@ view_surface_at( } void -focus_view(struct kiwmi_view *view) +view_focus(struct kiwmi_view *view) { if (!view) { return; diff --git a/kiwmi/desktop/xdg_shell.c b/kiwmi/desktop/xdg_shell.c index 8aefa7e..37d5c29 100644 --- a/kiwmi/desktop/xdg_shell.c +++ b/kiwmi/desktop/xdg_shell.c @@ -19,7 +19,7 @@ xdg_surface_map_notify(struct wl_listener *listener, void *UNUSED(data)) { struct kiwmi_view *view = wl_container_of(listener, view, map); view->mapped = true; - focus_view(view); + view_focus(view); } static void diff --git a/kiwmi/luak.c b/kiwmi/luak.c index 4d12886..e02b5a8 100644 --- a/kiwmi/luak.c +++ b/kiwmi/luak.c @@ -93,7 +93,7 @@ l_kiwmi_view_focus(lua_State *L) struct kiwmi_view *view = *(struct kiwmi_view **)luaL_checkudata(L, 1, "kiwmi_view"); - focus_view(view); + view_focus(view); return 0; }