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.
This commit is contained in:
David96 2020-05-02 13:29:26 +02:00
parent 5e5e5f2ee5
commit a3cb5f4430

View file

@ -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