diff --git a/cagebreak.c b/cagebreak.c index ef1e145..c44aab0 100644 --- a/cagebreak.c +++ b/cagebreak.c @@ -11,13 +11,13 @@ #include "config.h" #include -#include #include #include #include #include #include #include +#include #include #include #include diff --git a/keybinding.c b/keybinding.c index d750f96..81468ee 100644 --- a/keybinding.c +++ b/keybinding.c @@ -1,7 +1,7 @@ #define _POSIX_C_SOURCE 200809L -#include #include +#include #include #include #include @@ -963,7 +963,9 @@ run_action(enum keybinding_action action, struct cg_server *server, keybinding_configure_output(server, data.o_cfg); break; case KEYBINDING_CLOSE_VIEW: - keybinding_close_view(server->curr_output->workspaces[server->curr_output->curr_workspace]->focused_tile->view); + keybinding_close_view( + server->curr_output->workspaces[server->curr_output->curr_workspace] + ->focused_tile->view); break; default: { wlr_log(WLR_ERROR, diff --git a/message.c b/message.c index 14e0ba0..b88a562 100644 --- a/message.c +++ b/message.c @@ -7,9 +7,9 @@ #include #include -#include "pango.h" #include "message.h" #include "output.h" +#include "pango.h" #include "server.h" cairo_subpixel_order_t diff --git a/output.c b/output.c index f59b42c..fa7bd22 100644 --- a/output.c +++ b/output.c @@ -13,8 +13,8 @@ #include "config.h" #include -#include #include +#include #include #include #include diff --git a/parse.c b/parse.c index 940e49e..043625b 100644 --- a/parse.c +++ b/parse.c @@ -1,7 +1,7 @@ #define _POSIX_C_SOURCE 200812L -#include #include +#include #include #include "keybinding.h" diff --git a/view.h b/view.h index c4d6b47..e9fe6ab 100644 --- a/view.h +++ b/view.h @@ -4,8 +4,8 @@ #include "config.h" #include -#include #include +#include struct cg_server; struct wlr_box; diff --git a/xdg_shell.c b/xdg_shell.c index 5d97272..6b3272c 100644 --- a/xdg_shell.c +++ b/xdg_shell.c @@ -216,7 +216,7 @@ activate(struct cg_view *view, bool activate) { static void close(struct cg_view *view) { struct cg_xdg_shell_view *xdg_shell_view = xdg_shell_view_from_view(view); - struct wlr_xdg_surface *surface=xdg_shell_view->xdg_surface; + struct wlr_xdg_surface *surface = xdg_shell_view->xdg_surface; if(surface->role == WLR_XDG_SURFACE_ROLE_TOPLEVEL) { wlr_xdg_toplevel_send_close(surface); } @@ -325,7 +325,7 @@ static const struct cg_view_impl xdg_shell_view_impl = { .get_geometry = get_geometry, .is_primary = is_primary, .activate = activate, - .close = close, + .close = close, .maximize = maximize, .destroy = destroy, .for_each_surface = for_each_surface, diff --git a/xwayland.c b/xwayland.c index 34b7fba..294dc0e 100644 --- a/xwayland.c +++ b/xwayland.c @@ -149,11 +149,14 @@ handle_xwayland_surface_commit(struct wl_listener *listener, void *_data) { wl_container_of(listener, xwayland_view, commit); struct cg_view *view = &xwayland_view->view; /* xwayland surface has moved */ - if(xwayland_view->xwayland_surface->x != view->ox || xwayland_view->xwayland_surface->y != view->oy) { - output_damage_surface(view->workspace->output, view->wlr_surface,view->ox,view->oy,true); - view->ox=xwayland_view->xwayland_surface->x; - view->oy=xwayland_view->xwayland_surface->y; - output_damage_surface(view->workspace->output, view->wlr_surface,view->ox,view->oy,true); + if(xwayland_view->xwayland_surface->x != view->ox || + xwayland_view->xwayland_surface->y != view->oy) { + output_damage_surface(view->workspace->output, view->wlr_surface, + view->ox, view->oy, true); + view->ox = xwayland_view->xwayland_surface->x; + view->oy = xwayland_view->xwayland_surface->y; + output_damage_surface(view->workspace->output, view->wlr_surface, + view->ox, view->oy, true); } else { view_damage_part(view); }