fix style in configurex11()

This commit is contained in:
Leonardo Hernández Hernández 2024-08-09 20:51:33 -06:00
parent 8ec5e52e06
commit 5db05e82bd
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

10
dwl.c
View File

@ -3051,12 +3051,14 @@ 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
createnotifyx11(struct wl_listener *listener, void *data)