Hello,
I am in the process of cleaning-up / refactoring the wayland backend cursor
handling and I am stuck on the window-resize and window-move logic.
The wayland implementations requires the window move and resize to be
handled by the compositors which means that in the cursor button handler
there should be the knowledge of the window decorations to understand if
the click is in the titlebar or resizebar to then trigger the appropriate
callbacks in the compositor.

The current implementation that "works" has replicated the same logic
present in libs-gui GSStandardDecorationView, my concern is that this is
coupling the backend to a specific theme implementation which is not ideal:
https://github.com/gnustep/libs-back/blob/master/Source/wayland/WaylandServer%2BCursor.m#L213

Best would be if the theme is exposing some methods like: pointInTitleBar
or pointInResizeBar but I see that the base
interface GSWindowDecorationView doesn't have knowledge of titleBar or
resizeBar.

How do you suggest to proceed?

best,
Riccardo

Reply via email to