From db36af7246f83f863a767e81d218cd5429bf68b7 Mon Sep 17 00:00:00 2001 From: Joshua L Ervin Date: Fri, 20 Sep 2019 20:50:46 -0700 Subject: [PATCH] Hotfix for smart_place --- src/wm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wm.c b/src/wm.c index ccb14f0..3afbb2f 100644 --- a/src/wm.c +++ b/src/wm.c @@ -1410,7 +1410,13 @@ client_place(struct client *c) uint16_t opt[height][width]; // Initialize array to all 1's - memset(opt, 1, sizeof(opt[0][0]) * width * height); + //memset(opt, 1, sizeof(opt[0][0]) * width * height); + //memset(opt, 1, sizeof(uint16_t) * width * height); + for (int i = 0; i < height; i++) { + for (int j = 0; j < width; j++) { + opt[i][j] = 1; + } + } // Fill in the top gap for (int i = 0; i < conf.top_gap / PLACE_RES + 1; i++) {