Rename focus_view to view_focus
For consistency with the other functions.
This commit is contained in:
parent
09b817deaa
commit
849cda7021
4 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ struct wlr_surface *view_surface_at(
|
||||||
double *sub_x,
|
double *sub_x,
|
||||||
double *sub_y);
|
double *sub_y);
|
||||||
|
|
||||||
void focus_view(struct kiwmi_view *view);
|
void view_focus(struct kiwmi_view *view);
|
||||||
struct kiwmi_view *view_at(
|
struct kiwmi_view *view_at(
|
||||||
struct kiwmi_desktop *desktop,
|
struct kiwmi_desktop *desktop,
|
||||||
double lx,
|
double lx,
|
||||||
|
|
|
@ -54,7 +54,7 @@ view_surface_at(
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
focus_view(struct kiwmi_view *view)
|
view_focus(struct kiwmi_view *view)
|
||||||
{
|
{
|
||||||
if (!view) {
|
if (!view) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -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);
|
struct kiwmi_view *view = wl_container_of(listener, view, map);
|
||||||
view->mapped = true;
|
view->mapped = true;
|
||||||
focus_view(view);
|
view_focus(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -93,7 +93,7 @@ l_kiwmi_view_focus(lua_State *L)
|
||||||
struct kiwmi_view *view =
|
struct kiwmi_view *view =
|
||||||
*(struct kiwmi_view **)luaL_checkudata(L, 1, "kiwmi_view");
|
*(struct kiwmi_view **)luaL_checkudata(L, 1, "kiwmi_view");
|
||||||
|
|
||||||
focus_view(view);
|
view_focus(view);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue