Since you can't really have a negative button number.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct clickdot *clickdot = data;
static void
panel_launcher_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct panel_launcher *launcher;
static void
panel_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct panel *panel = data;
static void
unlock_dialog_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct unlock_dialog *dialog = data;
struct desktop *desktop = dialog->desktop;
static void
dnd_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct dnd *dnd = data;
int32_t x, y;
*/
static void
button_handler(struct widget *widget, struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
int32_t x, y;
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct flower *flower = data;
static void
button_handler(struct widget *widget, struct input *input,
- uint32_t time, int button, uint32_t state, void *data)
+ uint32_t time, uint32_t button, uint32_t state, void *data)
{
struct gears *gears = data;
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct resizor *resizor = data;
static void
lockscreen_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct lockscreen *lockscreen = data;
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct terminal *terminal = data;
static void
button_handler(struct widget *widget, struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct view *view = data;
static void
frame_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct frame *frame = data;
static void
menu_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state, void *data)
+ uint32_t button, uint32_t state, void *data)
{
struct menu *menu = data;
int32_t x, int32_t y, void *data);
typedef void (*widget_button_handler_t)(struct widget *widget,
struct input *input, uint32_t time,
- int button, uint32_t state,
+ uint32_t button, uint32_t state,
void *data);
struct window *
{
xcb_button_press_event_t *button_event =
(xcb_button_press_event_t *) event;
- int button;
+ uint32_t button;
switch (button_event->detail) {
default: