20:45 Vanfanel: @emersion I am trying to implement cursor confinement in the cage compositor. I believe I have everything in place, but I am not sure if I should apply pointer constraints before or after the wlr_seat_pointer_notify_motion() call. Right now I have it like this:
20:45 Vanfanel: https://github.com/vanfanel/cage/blob/13777319f574f4d26dcb44a4918fdf6aac3e97fd/seat.c#L638
20:45 Vanfanel: ..and process_cursor_motion() is returning if wlr_region_confine() returns zero, but cursor is still sticky on the edges, so really not confined :(
20:46 Vanfanel: Can you shed some light, please?
20:57 Vanfanel: @emersion For reference, on Sway it's done here:
20:57 Vanfanel: https://github.com/swaywm/sway/blob/22d0dd8bde62592ff34d354e059cdc6e09879cb4/sway/input/cursor.c#L368
20:57 Vanfanel: Constraints are applied after calling wlr_relative_pointer_manager_v1_send_relative_motion(), and before wlr_cursor_move(), which is not used the same way in Cage...
21:08 vyivel: Vanfanel: #wlroots on libera would be a better channel for this
21:09 Vanfanel: vyivel: ok, thanks!
21:10 Vanfanel: vyivel: matrix bridge disabled for Libera apparently, is there a way to receive channel updates from there while I am offline?
21:11 vyivel: only with a bouncer
21:53 wlb: wayland Issue #431 closed \o/ (wayland-server replaces existing /run/user/1000/wayland-0 when running under flatpak https://gitlab.freedesktop.org/wayland/wayland/-/issues/431)