client-toolkit icon indicating copy to clipboard operation
client-toolkit copied to clipboard

transform_changed doesn't work on sway

Open danyspin97 opened this issue 1 year ago • 3 comments

Function transform_changed doesn't get called when an output gets rotated (or changes its Transform) on compositor sway, except on startup. Using the same application on hyprland, shows that the function gets called correctly.

sway.log

danyspin97 avatar Jun 28 '24 14:06 danyspin97

The binded surface has v6 interface, thus compositor must use the https://wayland.app/protocols/wayland#wl_surface:event:preferred_buffer_transform , if you look into your log, you'll see that sway does send the buffer scale, but not transform, thus it's a sway bug and not client bug.

given that it works on hyprland you have a clear indication that it's a compositor bug, because hyprland supports the same `v6 interface.

kchibisov avatar Jun 28 '24 14:06 kchibisov

Thanks for the reply @kchibisov , I have forwarded the issue to sway developers.

danyspin97 avatar Jun 28 '24 15:06 danyspin97

Should be fixed by https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4730.

vyivel avatar Jun 28 '24 17:06 vyivel