spkp

Stacking wayland compositor
git clone git://git.z3bra.org/spkp.git
Log | Files | Refs

commit cf4434bc0566759fbf2d1abf96cc6c2555673896
parent 63ec1886aacfecf9c2698e306cff14b2b699d235
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon, 16 Nov 2020 14:50:09 +0100

Move variable declarations to the top in cb_frame_output()

Diffstat:
Msp:kp.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sp:kp.c b/sp:kp.c @@ -329,6 +329,7 @@ cb_destroy_output(struct wl_listener *listener, void *data) void cb_frame_output(struct wl_listener *listener, void *data) { + struct spkp *server; struct output *output; struct window *window; struct rdata rdata; @@ -336,6 +337,7 @@ cb_frame_output(struct wl_listener *listener, void *data) struct wlr_renderer *renderer; output = wl_container_of(listener, output, frame); + server = output->server; renderer = output->server->renderer; wlr_output = data; @@ -364,7 +366,6 @@ cb_frame_output(struct wl_listener *listener, void *data) wlr_xdg_surface_for_each_surface(window->xdg, render, &rdata); } - struct spkp *server = output->server; if (server->grabmode != NORMAL) render_border(&server->grabbox, &rdata, drawcolor);