compositor: fix right/bottom tiled off-by-one

This commit is contained in:
K. Lange 2018-10-11 10:18:09 +09:00
parent 401fa2b279
commit 532b4bd64f

View File

@ -1361,7 +1361,7 @@ static void window_tile(yutani_globals_t * yg, yutani_server_window_t * window,
}
/* If not right most */
if (x < width_div) {
if (x < width_div-1) {
w++;
tile &= ~YUTANI_RESIZE_TILE_RIGHT;
}
@ -1374,7 +1374,7 @@ static void window_tile(yutani_globals_t * yg, yutani_server_window_t * window,
}
/* If not bottom most */
if (y < height_div) {
if (y < height_div-1) {
h++;
tile &= ~YUTANI_RESIZE_TILE_DOWN;
}