Future API improvements
This issue is intended to collect and discuss API improvement suggestions.
- pointer: Replace
dxanddyproperties withdelta_xanddelta_y. The PointerMotionEvent has the properties "delta_x" and "delta_y". The other events call the same thing "dx" and "dy" - xwayland:
Surface.or_surface_wants_focus: ~~The name makes no sense at all. The underlying function is calledxwayland_or_surface_wants_focuswhich makes sense, but in the context of the surface, the "or" makes no sense. Suggestion:Surface.wants_focus~~ See comment below.
The "or" stands for "override redirect" (not for ||) and basically means an unmanaged surface. Those are used in X11 for popups / tooltips and the like. See https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.17/include/wlr/xwayland/xwayland.h?ref_type=heads#L262 for more details.
The "or" stands for "override redirect" (not for
||) and basically means an unmanaged surface. Those are used in X11 for popups / tooltips and the like. See https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/0.17/include/wlr/xwayland/xwayland.h?ref_type=heads#L262 for more details.
Thank you. You're right. I read the wlr function name (by mistake) like "either xwayland or a surface". I'm unsure, even knowing my mistake, if I like the method name, though. ;)
Anyway, thanks for clearing up!