From a3cb5f443075d4164554f98f0155489cdd9bc323 Mon Sep 17 00:00:00 2001 From: David96 Date: Sat, 2 May 2020 13:29:26 +0200 Subject: [PATCH] Fix resizing floating windows at top border Adding the container_titlebar_height here causes the window height to instantly add the titlebar height to the window when resizing is started. --- sway/input/seatop_resize_floating.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sway/input/seatop_resize_floating.c b/sway/input/seatop_resize_floating.c index 4e5db112b..496f8bf44 100644 --- a/sway/input/seatop_resize_floating.c +++ b/sway/input/seatop_resize_floating.c @@ -76,7 +76,6 @@ static void handle_motion(struct sway_seat *seat, uint32_t time_msec, struct sway_container_state *state = &con->current; width += state->border_thickness * 2; height += config->titlebar_border_thickness * 2; - height += container_titlebar_height(); height += config->titlebar_v_padding; // Recalculate these, in case we hit a min/max limit