mirror of
https://github.com/swaywm/sway.git
synced 2026-04-02 07:15:50 -04:00
Replace seatup allows_events with button callback
This commit is contained in:
parent
73605dac2a
commit
fb3475e291
4 changed files with 23 additions and 11 deletions
|
|
@ -1216,6 +1216,14 @@ void seatop_unref(struct sway_seat *seat, struct sway_container *con) {
|
|||
}
|
||||
}
|
||||
|
||||
void seatop_button(struct sway_seat *seat, uint32_t time_msec,
|
||||
struct wlr_input_device *device, uint32_t button,
|
||||
enum wlr_button_state state) {
|
||||
if (seat->seatop_impl && seat->seatop_impl->button) {
|
||||
seat->seatop_impl->button(seat, time_msec, device, button, state);
|
||||
}
|
||||
}
|
||||
|
||||
void seatop_motion(struct sway_seat *seat, uint32_t time_msec) {
|
||||
if (seat->seatop_impl && seat->seatop_impl->motion) {
|
||||
seat->seatop_impl->motion(seat, time_msec);
|
||||
|
|
@ -1246,7 +1254,3 @@ void seatop_render(struct sway_seat *seat, struct sway_output *output,
|
|||
seat->seatop_impl->render(seat, output, damage);
|
||||
}
|
||||
}
|
||||
|
||||
bool seatop_allows_events(struct sway_seat *seat) {
|
||||
return seat->seatop_impl && seat->seatop_impl->allows_events;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue