compositor: fix right/bottom tiled off-by-one
This commit is contained in:
parent
401fa2b279
commit
532b4bd64f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user