Update client scale after monitor changes

bcd34cb30f49f7197298072a4112bf0dd7a3b9b2
Moving a window between outputs could leave it using the previous
output's preferred buffer and fractional scale. Notify the surface after
assigning its new monitor so it renders at the target output's scale.
Alexis Sellier committed ago 1 parent cf30b410
swm.c +3 -0
5217 5217
            arrange(m);
5218 5218
        return;
5219 5219
    }
5220 5220
    c->mon = m;
5221 5221
5222 +
    if (m)
5223 +
        client_set_scale(client_surface(c), m->wlr_output->scale);
5224 +
5222 5225
    if (!c->is_fullscreen)
5223 5226
        c->prev = c->geom;
5224 5227
5225 5228
    /* Moving this node tells applications which displays they overlap. */
5226 5229
    if (oldmon)