clang-format

This commit is contained in:
buffet 2020-01-08 17:33:15 +00:00
parent 4d66181506
commit 81f2ee43c4
2 changed files with 10 additions and 6 deletions

View file

@ -77,7 +77,10 @@ xdg_shell_view_set_activated(struct kiwmi_view *view, bool activated)
}
static void
xdg_shell_view_set_size(struct kiwmi_view *view, uint32_t width, uint32_t height)
xdg_shell_view_set_size(
struct kiwmi_view *view,
uint32_t width,
uint32_t height)
{
wlr_xdg_toplevel_set_size(view->xdg_surface, width, height);
}

View file

@ -125,7 +125,8 @@ l_kiwmi_view_tiled(lua_State *L)
enum wlr_edges edges = WLR_EDGE_NONE;
if (lua_toboolean(L, 2)) {
edges = WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT;
edges =
WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT;
}
view_set_tiled(view, edges);
@ -147,16 +148,16 @@ l_kiwmi_view_tiled(lua_State *L)
switch (edge[0]) {
case 't':
edges |= WLR_EDGE_TOP;
edges |= WLR_EDGE_TOP;
break;
case 'b':
edges |= WLR_EDGE_BOTTOM;
edges |= WLR_EDGE_BOTTOM;
break;
case 'l':
edges |= WLR_EDGE_LEFT;
edges |= WLR_EDGE_LEFT;
break;
case 'r':
edges |= WLR_EDGE_RIGHT;
edges |= WLR_EDGE_RIGHT;
break;
}