X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmouse.h;h=95dcc55f7690c0e8b1ba8f4eb3fdff08dbdd2204;hb=5941c924e809c7141e34154eaa23f11da8572e1e;hp=a5e8f9a886548c622a3369a4b5e89d9b7afeae3a;hpb=c90da6da781932c2d178bfb7e39ec1d5003543b7;p=chaz%2Fopenbox diff --git a/openbox/mouse.h b/openbox/mouse.h index a5e8f9a8..95dcc55f 100644 --- a/openbox/mouse.h +++ b/openbox/mouse.h @@ -3,26 +3,21 @@ #include "action.h" #include "frame.h" +#include "misc.h" #include -typedef enum { - MouseAction_Press, - MouseAction_Release, - MouseAction_Click, - MouseAction_DClick, - MouseAction_Motion, - NUM_MOUSEACTION -} ObMouseAction; - -void mouse_startup(); -void mouse_shutdown(); +void mouse_startup(gboolean reconfig); +void mouse_shutdown(gboolean reconfig); gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact, ObAction *action); -void mouse_event(struct _ObClient *client, ObFrameContext context, XEvent *e); +void mouse_event(struct _ObClient *client, XEvent *e); void mouse_grab_for_client(struct _ObClient *client, gboolean grab); +ObFrameContext mouse_button_frame_context(ObFrameContext context, + guint button); + #endif