Skip to content

Commit

Permalink
Hotfix for smart_place
Browse files Browse the repository at this point in the history
  • Loading branch information
JLErvin committed Sep 21, 2019
1 parent 7cfb7be commit db36af7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit db36af7

Please sign in to comment.