2023-05-14 00:21:16 +02:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
2023-04-02 16:10:13 +02:00
|
|
|
// clicks
|
|
|
|
enum {
|
2023-05-06 14:13:56 +02:00
|
|
|
ClickWindow,
|
|
|
|
ClickPrompt,
|
|
|
|
ClickInput,
|
|
|
|
ClickLArrow,
|
|
|
|
ClickItem,
|
|
|
|
ClickSelItem,
|
|
|
|
ClickRArrow,
|
|
|
|
ClickNumber,
|
|
|
|
ClickCaps,
|
|
|
|
ClickMode,
|
2023-04-02 16:10:13 +02:00
|
|
|
};
|
|
|
|
|
2023-04-25 16:42:15 +02:00
|
|
|
typedef struct {
|
2023-05-08 23:00:45 +02:00
|
|
|
unsigned int click;
|
|
|
|
unsigned int mask;
|
|
|
|
unsigned int button;
|
|
|
|
void (*func)(Arg *arg);
|
|
|
|
Arg arg;
|
2023-04-25 16:42:15 +02:00
|
|
|
} Mouse;
|
|
|
|
|
|
|
|
static Mouse cbuttons[256];
|
2023-03-08 17:20:32 +01:00
|
|
|
static void buttonpress(XEvent *e);
|