spmenu/libs/mouse.h

30 lines
1.1 KiB
C
Raw Normal View History

/* Mouse bindings
2023-05-14 00:21:16 +02:00
* See LICENSE file for copyright and license details.
*/
/* Only applies to X11 */
#if USEX
static Mouse buttons[] = {
{ ClickInput, Button1, clear, {0} },
{ ClickPrompt, Button1, clear, {0} },
{ ClickMode, Button1, switchmode, {0} },
{ ClickNumber, Button1, viewhist, {0} },
{ ClickSelItem, Button1, NULL, {0} },
{ ClickNone, Button5, movenext, {0} },
{ ClickNone, Button4, moveprev, {0} },
};
#endif
/* Only applies to Wayland */
#if USEWAYLAND
static WlMouse wl_buttons[] = {
{ ClickInput, WL_Left, clear, {0} },
{ ClickPrompt, WL_Left, clear, {0} },
{ ClickMode, WL_Left, switchmode, {0} },
{ ClickNumber, WL_Left, viewhist, {0} },
{ ClickSelItem, WL_Left, NULL, {0} },
{ ClickNone, WL_ScrollDown, movenext, {0} },
{ ClickNone, WL_ScrollUp, moveprev, {0} },
};
#endif