project: not use global var

This commit is contained in:
DreamMaoMao 2026-02-04 20:13:44 +08:00
parent 0b35b00f91
commit 21a492e961
17 changed files with 1885 additions and 1599 deletions

View file

@ -279,10 +279,10 @@ static inline int32_t client_is_unmanaged(Client *c) {
static inline void client_notify_enter(struct wlr_surface *s,
struct wlr_keyboard *kb) {
if (kb)
wlr_seat_keyboard_notify_enter(seat, s, kb->keycodes, kb->num_keycodes,
&kb->modifiers);
wlr_seat_keyboard_notify_enter(server.seat, s, kb->keycodes,
kb->num_keycodes, &kb->modifiers);
else
wlr_seat_keyboard_notify_enter(seat, s, NULL, 0, NULL);
wlr_seat_keyboard_notify_enter(server.seat, s, NULL, 0, NULL);
}
static inline void client_send_close(Client *c) {