mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
seat: remove unused keyboard focus_change event
This commit is contained in:
parent
d98181dab8
commit
fadbdcd13c
3 changed files with 1 additions and 25 deletions
|
@ -148,7 +148,7 @@ struct wlr_seat_pointer_state {
|
|||
struct wl_listener surface_destroy;
|
||||
|
||||
struct {
|
||||
struct wl_signal focus_change;
|
||||
struct wl_signal focus_change; // wlr_seat_pointer_focus_change_event
|
||||
} events;
|
||||
};
|
||||
|
||||
|
@ -168,10 +168,6 @@ struct wlr_seat_keyboard_state {
|
|||
|
||||
struct wlr_seat_keyboard_grab *grab;
|
||||
struct wlr_seat_keyboard_grab *default_grab;
|
||||
|
||||
struct {
|
||||
struct wl_signal focus_change;
|
||||
} events;
|
||||
};
|
||||
|
||||
struct wlr_seat_touch_state {
|
||||
|
@ -252,14 +248,6 @@ struct wlr_seat_pointer_focus_change_event {
|
|||
double sx, sy;
|
||||
};
|
||||
|
||||
struct wlr_seat_keyboard_focus_change_event {
|
||||
struct wlr_seat *seat;
|
||||
struct wlr_surface *old_surface, *new_surface;
|
||||
size_t num_keycodes;
|
||||
uint32_t *keycodes;
|
||||
struct wlr_keyboard_modifiers *modifiers;
|
||||
};
|
||||
|
||||
/**
|
||||
* Allocates a new wlr_seat and adds a wl_seat global to the display.
|
||||
*/
|
||||
|
|
|
@ -243,8 +243,6 @@ struct wlr_seat *wlr_seat_create(struct wl_display *display, const char *name) {
|
|||
seat->keyboard_state.seat = seat;
|
||||
wl_list_init(&seat->keyboard_state.surface_destroy.link);
|
||||
|
||||
wl_signal_init(&seat->keyboard_state.events.focus_change);
|
||||
|
||||
// touch state
|
||||
struct wlr_seat_touch_grab *touch_grab =
|
||||
calloc(1, sizeof(struct wlr_seat_touch_grab));
|
||||
|
|
|
@ -291,16 +291,6 @@ void wlr_seat_keyboard_enter(struct wlr_seat *seat,
|
|||
// as it targets seat->keyboard_state.focused_client
|
||||
wlr_seat_keyboard_send_modifiers(seat, modifiers);
|
||||
}
|
||||
|
||||
struct wlr_seat_keyboard_focus_change_event event = {
|
||||
.seat = seat,
|
||||
.new_surface = surface,
|
||||
.old_surface = focused_surface,
|
||||
.num_keycodes = num_keycodes,
|
||||
.keycodes = keycodes,
|
||||
.modifiers = modifiers,
|
||||
};
|
||||
wlr_signal_emit_safe(&seat->keyboard_state.events.focus_change, &event);
|
||||
}
|
||||
|
||||
void wlr_seat_keyboard_notify_enter(struct wlr_seat *seat,
|
||||
|
|
Loading…
Reference in a new issue