mouse: move declaration from structs to mouse header

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-24 20:38:29 +02:00
parent bf5001337c
commit 1e89515d97
5 changed files with 24 additions and 21 deletions

View File

@ -25,6 +25,7 @@
#include <xcb/xcb_icccm.h>
#include "structs.h"
#include "mouse.h"
#include "stack.h"
static void

20
mouse.h
View File

@ -24,6 +24,26 @@
#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_move(lua_State *);

View File

@ -71,6 +71,7 @@ typedef void (widget_destructor_t)(widget_t *);
typedef struct awesome_t awesome_t;
ARRAY_TYPE(widget_node_t, widget_node)
ARRAY_TYPE(button_t *, button)
/** Wibox type */
typedef struct
@ -101,26 +102,6 @@ typedef struct
} wibox_t;
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 */
struct widget_t
{

View File

@ -22,7 +22,7 @@
#ifndef AWESOME_WIDGET_H
#define AWESOME_WIDGET_H
#include "structs.h"
#include "mouse.h"
#define WIDGET_CACHE_EMBEDDED (1<<3)

View File

@ -23,6 +23,7 @@
#include <xcb/xcb_atom.h>
#include "window.h"
#include "mouse.h"
#include "common/atoms.h"
extern awesome_t globalconf;