Skip to content

Commit

Permalink
fix determine_evmask warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Sep 13, 2012
1 parent 0064894 commit e2c14ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ should_ignore(Display *dpy, unsigned long sequence) {
* Windows
*/

long determine_evmask(Display *dpy, Window wid, enum win_evmode_t mode) {
static long
determine_evmask(Display *dpy, Window wid, win_evmode_t mode) {
long evmask = NoEventMask;

if (WIN_EVMODE_FRAME == mode || find_win(dpy, wid)) {
Expand Down
9 changes: 9 additions & 0 deletions src/compton.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ typedef struct _fade {
Display *dpy;
} fade;

typedef enum {
WIN_EVMODE_UNKNOWN,
WIN_EVMODE_FRAME,
WIN_EVMODE_CLIENT
} win_evmode_t;

extern int root_height, root_width;
extern Atom atom_client_attr;

Expand Down Expand Up @@ -356,6 +362,9 @@ set_ignore(Display *dpy, unsigned long sequence);
static int
should_ignore(Display *dpy, unsigned long sequence);

static long
determine_evmask(Display *dpy, Window wid, win_evmode_t mode);

static win *
find_win(Display *dpy, Window id);

Expand Down

0 comments on commit e2c14ee

Please sign in to comment.