add xdg decoration, scene/tree factories, geometry + seat focus

more wrapper soup. xdg decoration manager, scene/tree node factories so
callers stop touching raw wlr_scene_*_create, a box geometry helper, and
seat pointer/keyboard focus clearing. dragging myself through it.
This commit is contained in:
AstralZX
2026-08-29 10:04:50 +02:00
parent 89cbf733b3
commit 5bd1c6561c
9 changed files with 197 additions and 43 deletions
+10
View File
@@ -71,6 +71,16 @@ public:
void keyboard_notify_key(uint32_t time, uint32_t keycode, enum wl_keyboard_key_state state) {
wlr_seat_keyboard_notify_key(m_seat, time, keycode, state);
}
void keyboard_notify_enter(struct wlr_surface* surface,
uint32_t* keycodes = nullptr, size_t num_keycodes = 0,
struct wlr_keyboard_modifiers* modifiers = nullptr) {
wlr_seat_keyboard_notify_enter(m_seat, surface, keycodes, num_keycodes, modifiers);
}
void keyboard_clear_focus() { wlr_seat_keyboard_clear_focus(m_seat); }
void pointer_notify_enter(struct wlr_surface* surface, double sx, double sy) {
wlr_seat_pointer_notify_enter(m_seat, surface, sx, sy);
}
void pointer_clear_focus() { wlr_seat_pointer_clear_focus(m_seat); }
void pointer_notify_motion(uint32_t time, double sx, double sy) {
wlr_seat_pointer_notify_motion(m_seat, time, sx, sy);
}