summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/x11-helper.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c
index 97266fff..c51c3e66 100644
--- a/source/x11-helper.c
+++ b/source/x11-helper.c
@@ -254,10 +254,8 @@ static void x11_build_monitor_layout_xinerama ()
w->w = screens_iterator.data->width;
w->h = screens_iterator.data->height;
- if ( w ) {
- w->next = xcb->monitors;
- xcb->monitors = w;
- }
+ w->next = xcb->monitors;
+ xcb->monitors = w;
}
int index = 0;