@ -2,7 +2,6 @@
# define _POSIX_C_SOURCE 200809L
# define _POSIX_C_SOURCE 200809L
# endif
# endif
# include "tablet-unstable-v2-protocol.h"
# include <assert.h>
# include <assert.h>
# include <stdlib.h>
# include <stdlib.h>
# include <types/wlr_tablet_v2.h>
# include <types/wlr_tablet_v2.h>
@ -12,6 +11,8 @@
# include <wlr/types/wlr_tablet_pad.h>
# include <wlr/types/wlr_tablet_pad.h>
# include <wlr/types/wlr_tablet_v2.h>
# include <wlr/types/wlr_tablet_v2.h>
# include <wlr/util/log.h>
# include <wlr/util/log.h>
# include "util/signal.h"
# include "tablet-unstable-v2-protocol.h"
static const struct wlr_tablet_pad_v2_grab_interface default_pad_grab_interface ;
static const struct wlr_tablet_pad_v2_grab_interface default_pad_grab_interface ;
@ -49,9 +50,9 @@ static void handle_tablet_pad_ring_v2_set_feedback(struct wl_client *client,
. serial = serial ,
. serial = serial ,
. description = description ,
. description = description ,
. index = aux - > index
. index = aux - > index
} ;
} ;
wl _signal_emit( & aux - > pad - > pad - > events . ring_feedback , & evt ) ;
wl r _signal_emit_safe ( & aux - > pad - > pad - > events . ring_feedback , & evt ) ;
}
}
static void handle_tablet_pad_ring_v2_destroy ( struct wl_client * client ,
static void handle_tablet_pad_ring_v2_destroy ( struct wl_client * client ,
@ -87,9 +88,9 @@ static void handle_tablet_pad_strip_v2_set_feedback(struct wl_client *client,
. serial = serial ,
. serial = serial ,
. description = description ,
. description = description ,
. index = aux - > index
. index = aux - > index
} ;
} ;
wl _signal_emit( & aux - > pad - > pad - > events . strip_feedback , & evt ) ;
wl r _signal_emit_safe ( & aux - > pad - > pad - > events . strip_feedback , & evt ) ;
}
}
static void handle_tablet_pad_strip_v2_destroy ( struct wl_client * client ,
static void handle_tablet_pad_strip_v2_destroy ( struct wl_client * client ,
@ -114,9 +115,9 @@ static void handle_tablet_pad_v2_set_feedback( struct wl_client *client,
. serial = serial ,
. serial = serial ,
. index = button ,
. index = button ,
. description = description ,
. description = description ,
} ;
} ;
wl _signal_emit( & pad - > pad - > events . button_feedback , & evt ) ;
wl r _signal_emit_safe ( & pad - > pad - > events . button_feedback , & evt ) ;
}
}
static const struct zwp_tablet_pad_v2_interface tablet_pad_impl = {
static const struct zwp_tablet_pad_v2_interface tablet_pad_impl = {