Commits buffers that aren't divisible by the integer scale factor
E.g. on a 1920x1080
display going via
wlr-randr --output=eDP-1 --scale 2
(which works) and then going to 2.1
via
wlr-randr --output=eDP-1 --scale 2.1
disconnects phosh with
[3219215.023] -> wl_surface@59.set_buffer_scale(3)
[3219215.041] -> wl_buffer@76.destroy()
[3219215.043] -> wl_shm_pool@58.destroy()
[3219215.300] -> wl_surface@88.set_buffer_scale(3)
(phosh:1279216): phosh-top-panel-DEBUG: 16:50:59.145: on_configure_event: 540x960 margin: -508
(phosh:1279216): phosh-top-panel-DEBUG: 16:50:59.145: Drag Handle: 74
[3219215.393] -> wl_surface@52.commit()
(phosh:1279216): phosh-home-DEBUG: 16:50:59.146: on_configure_event: 508x960, margin: -493
(phosh:1279216): phosh-home-DEBUG: 16:50:59.146: Drag Handle: 227
[3219216.021] -> wl_surface@59.commit()
[3219259.611] -> wl_surface@52.set_buffer_scale(3)
[3219311.275] -> wl_surface@59.set_buffer_scale(3)
[3219311.531] -> wl_surface@88.set_buffer_scale(3)
Gdk-Message: 16:50:59.241: Lost connection to Wayland compositor.
However coming from a larger scale:
wlr-randr --output=eDP-1 --scale 3
(which works) and then goint to 2.1
via
wlr-randr --output=eDP-1 --scale 2.1
works as expected.