mouse: move declaration from structs to mouse header
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
bf5001337c
commit
1e89515d97
1
client.h
1
client.h
|
@ -25,6 +25,7 @@
|
||||||
#include <xcb/xcb_icccm.h>
|
#include <xcb/xcb_icccm.h>
|
||||||
|
|
||||||
#include "structs.h"
|
#include "structs.h"
|
||||||
|
#include "mouse.h"
|
||||||
#include "stack.h"
|
#include "stack.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
20
mouse.h
20
mouse.h
|
@ -24,6 +24,26 @@
|
||||||
|
|
||||||
#include "structs.h"
|
#include "structs.h"
|
||||||
|
|
||||||
|
/** Mouse buttons bindings */
|
||||||
|
struct button_t
|
||||||
|
{
|
||||||
|
/** Ref count */
|
||||||
|
int refcount;
|
||||||
|
/** Key modifiers */
|
||||||
|
unsigned long mod;
|
||||||
|
/** Mouse button number */
|
||||||
|
unsigned int button;
|
||||||
|
/** Lua function to execute on press. */
|
||||||
|
luaA_ref press;
|
||||||
|
/** Lua function to execute on release. */
|
||||||
|
luaA_ref release;
|
||||||
|
};
|
||||||
|
|
||||||
|
void button_delete(button_t **);
|
||||||
|
|
||||||
|
DO_RCNT(button_t, button, button_delete)
|
||||||
|
ARRAY_FUNCS(button_t *, button, button_unref)
|
||||||
|
|
||||||
int luaA_client_mouse_resize(lua_State *);
|
int luaA_client_mouse_resize(lua_State *);
|
||||||
int luaA_client_mouse_move(lua_State *);
|
int luaA_client_mouse_move(lua_State *);
|
||||||
|
|
||||||
|
|
21
structs.h
21
structs.h
|
@ -71,6 +71,7 @@ typedef void (widget_destructor_t)(widget_t *);
|
||||||
typedef struct awesome_t awesome_t;
|
typedef struct awesome_t awesome_t;
|
||||||
|
|
||||||
ARRAY_TYPE(widget_node_t, widget_node)
|
ARRAY_TYPE(widget_node_t, widget_node)
|
||||||
|
ARRAY_TYPE(button_t *, button)
|
||||||
|
|
||||||
/** Wibox type */
|
/** Wibox type */
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -101,26 +102,6 @@ typedef struct
|
||||||
} wibox_t;
|
} wibox_t;
|
||||||
ARRAY_TYPE(wibox_t *, wibox)
|
ARRAY_TYPE(wibox_t *, wibox)
|
||||||
|
|
||||||
/** Mouse buttons bindings */
|
|
||||||
struct button_t
|
|
||||||
{
|
|
||||||
/** Ref count */
|
|
||||||
int refcount;
|
|
||||||
/** Key modifiers */
|
|
||||||
unsigned long mod;
|
|
||||||
/** Mouse button number */
|
|
||||||
unsigned int button;
|
|
||||||
/** Lua function to execute on press. */
|
|
||||||
luaA_ref press;
|
|
||||||
/** Lua function to execute on release. */
|
|
||||||
luaA_ref release;
|
|
||||||
};
|
|
||||||
|
|
||||||
void button_delete(button_t **button);
|
|
||||||
|
|
||||||
DO_RCNT(button_t, button, button_delete)
|
|
||||||
DO_ARRAY(button_t *, button, button_unref)
|
|
||||||
|
|
||||||
/** Widget */
|
/** Widget */
|
||||||
struct widget_t
|
struct widget_t
|
||||||
{
|
{
|
||||||
|
|
2
widget.h
2
widget.h
|
@ -22,7 +22,7 @@
|
||||||
#ifndef AWESOME_WIDGET_H
|
#ifndef AWESOME_WIDGET_H
|
||||||
#define AWESOME_WIDGET_H
|
#define AWESOME_WIDGET_H
|
||||||
|
|
||||||
#include "structs.h"
|
#include "mouse.h"
|
||||||
|
|
||||||
#define WIDGET_CACHE_EMBEDDED (1<<3)
|
#define WIDGET_CACHE_EMBEDDED (1<<3)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue