From 6278604753e1f9a08a75119f9b661178dd450bd0 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 13 Sep 2012 10:24:37 -0500 Subject: fix determine_evmask warnings --- compton.c | 3 ++- compton.h | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/compton.c b/compton.c index f54e95089..fc2f536e5 100644 --- a/compton.c +++ b/compton.c @@ -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)) { diff --git a/compton.h b/compton.h index e89728a6a..2633a98ed 100644 --- a/compton.h +++ b/compton.h @@ -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; @@ -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); -- cgit v1.2.1