Re: [PATCH RFC] cursor: add wl_cursor_manager

2018-10-21 Thread Simon Ser
Ah, I forgot to say that an issue with this design is that some libwayland-cursor would need to block until the compositor sends the required metadata (ala-wl_display_roundtrip). I'm not sure if this is an issue or not. If we don't want to block, then we'll need a much more complicated design with

[PATCH RFC] cursor: add wl_cursor_manager

2018-10-18 Thread Simon Ser
Signed-off-by: Simon Ser --- This patch only includes changes to libwayland-cursor's header file. The goal is to show how the new API could look like. This patch adds a new wl_cursor_manager. When created, it only binds to wl_shm and discovers additional protocols the compositor might support. T