fix compile error mixed declaration

This commit is contained in:
Stivvo 2020-10-18 18:37:55 +02:00
parent 96d9f010de
commit 7017a0c64d

2
dwl.c
View file

@ -2149,8 +2149,8 @@ unmapnotify(struct wl_listener *listener, void *data)
void void
updatemons() updatemons()
{ {
sgeom = *wlr_output_layout_get_box(output_layout, NULL);
Monitor *m; Monitor *m;
sgeom = *wlr_output_layout_get_box(output_layout, NULL);
wl_list_for_each(m, &mons, link) { wl_list_for_each(m, &mons, link) {
/* Get the effective monitor geometry to use for surfaces */ /* Get the effective monitor geometry to use for surfaces */
m->m = m->w = *wlr_output_layout_get_box(output_layout, m->wlr_output); m->m = m->w = *wlr_output_layout_get_box(output_layout, m->wlr_output);