all repos — openbox @ c561ee4c7f5d24e01a4fdfd3ae44500e88ef5e52

openbox fork - make it a bit more like ryudo

plugins/mouse/mouse.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __plugin_mouse_mouse_h
#define __plugin_mouse_mouse_h

#include "../../kernel/action.h"

typedef enum {
    MouseAction_Press,
    MouseAction_Release,
    MouseAction_Click,
    MouseAction_DClick,
    MouseAction_Motion,
    NUM_MOUSEACTION
} MouseAction;

typedef struct {
    guint state;
    guint button;
    Action *action[NUM_MOUSEACTION];
} MouseBinding;

gboolean mbind(char *buttonstr, char *contextstr, MouseAction mact,
               Action *action);

#endif