clang-format

This commit is contained in:
buffet 2020-01-08 17:33:15 +00:00
parent 5dc2c62d89
commit 6d84fbe1c5
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 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); 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; enum wlr_edges edges = WLR_EDGE_NONE;
if (lua_toboolean(L, 2)) { 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); view_set_tiled(view, edges);
@ -147,16 +148,16 @@ l_kiwmi_view_tiled(lua_State *L)
switch (edge[0]) { switch (edge[0]) {
case 't': case 't':
edges |= WLR_EDGE_TOP; edges |= WLR_EDGE_TOP;
break; break;
case 'b': case 'b':
edges |= WLR_EDGE_BOTTOM; edges |= WLR_EDGE_BOTTOM;
break; break;
case 'l': case 'l':
edges |= WLR_EDGE_LEFT; edges |= WLR_EDGE_LEFT;
break; break;
case 'r': case 'r':
edges |= WLR_EDGE_RIGHT; edges |= WLR_EDGE_RIGHT;
break; break;
} }