Handle forward/back mouse buttons in swaybar

This commit is contained in:
Peter Rice 2018-01-07 19:27:34 -05:00
parent c6d54f364f
commit e2d54d36d2

View file

@ -136,6 +136,12 @@ static void mouse_button_notify(struct window *window, int x, int y,
case BTN_RIGHT:
status_line_mouse_event(&swaybar, x, y, 3);
break;
case BTN_SIDE:
status_line_mouse_event(&swaybar, x, y, 8);
break;
case BTN_EXTRA:
status_line_mouse_event(&swaybar, x, y, 9);
break;
}
#ifdef ENABLE_TRAY