Commit 8b7237a5a68d848184ea37b6e3b9faf6ec3c08df Parent: 4305cb4610efe6f799806dc3d5a22fa3b89cc1b7 Author: mcol <mcol@posteo.net> Date: 2021-01-28 23:47:33 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-01-28 23:47:33 +0000 take border into account when halfimising
src/action.c Modified
@@ -318,8 +318,11 @@ } double zoom = wimp.current_desk->zoom; - view->x = x / zoom; - view->y = y / zoom; + int border_width = wimp.current_desk->border_width; + view->x = x / zoom + border_width; + view->y = y / zoom + border_width; + width -= border_width * 2; + height -= border_width * 2; wlr_xdg_toplevel_set_size(view->surface, width / zoom, height / zoom); wlr_xdg_toplevel_set_tiled(view->surface, true); }