fix determine_evmask warnings
This commit is contained in:
parent
0064894bf6
commit
e2c14ee545
|
@ -705,7 +705,8 @@ should_ignore(Display *dpy, unsigned long sequence) {
|
||||||
* Windows
|
* 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;
|
long evmask = NoEventMask;
|
||||||
|
|
||||||
if (WIN_EVMODE_FRAME == mode || find_win(dpy, wid)) {
|
if (WIN_EVMODE_FRAME == mode || find_win(dpy, wid)) {
|
||||||
|
|
|
@ -143,6 +143,12 @@ typedef struct _fade {
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
} fade;
|
} fade;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
WIN_EVMODE_UNKNOWN,
|
||||||
|
WIN_EVMODE_FRAME,
|
||||||
|
WIN_EVMODE_CLIENT
|
||||||
|
} win_evmode_t;
|
||||||
|
|
||||||
extern int root_height, root_width;
|
extern int root_height, root_width;
|
||||||
extern Atom atom_client_attr;
|
extern Atom atom_client_attr;
|
||||||
|
|
||||||
|
@ -356,6 +362,9 @@ set_ignore(Display *dpy, unsigned long sequence);
|
||||||
static int
|
static int
|
||||||
should_ignore(Display *dpy, unsigned long sequence);
|
should_ignore(Display *dpy, unsigned long sequence);
|
||||||
|
|
||||||
|
static long
|
||||||
|
determine_evmask(Display *dpy, Window wid, win_evmode_t mode);
|
||||||
|
|
||||||
static win *
|
static win *
|
||||||
find_win(Display *dpy, Window id);
|
find_win(Display *dpy, Window id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue