From 5db05e82bd7d1f6bf3cb0ce1ddd07952f06e57f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Fri, 9 Aug 2024 20:51:33 -0600 Subject: [PATCH] fix style in configurex11() --- dwl.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dwl.c b/dwl.c index 3171123..78cf341 100644 --- a/dwl.c +++ b/dwl.c @@ -3051,11 +3051,13 @@ configurex11(struct wl_listener *listener, void *data) event->x, event->y, event->width, event->height); return; } - if ((c->isfloating && c != grabc) || !c->mon->lt[c->mon->sellt]->arrange) - resize(c, (struct wlr_box){.x = event->x - c->bw, .y = event->y - c->bw, - .width = event->width + c->bw * 2, .height = event->height + c->bw * 2}, 0); - else + if ((c->isfloating && c != grabc) || !c->mon->lt[c->mon->sellt]->arrange) { + resize(c, (struct wlr_box){.x = event->x - c->bw, + .y = event->y - c->bw, .width = event->width + c->bw * 2, + .height = event->height + c->bw * 2}, 0); + } else { arrange(c->mon); + } } void