catch button presses on the frame so that clicks on the side borders dont go through to the root window

This commit is contained in:
Dana Jansens 2003-04-01 21:17:09 +00:00
parent f1ba6ac96f
commit 2517e30755

View file

@ -14,7 +14,8 @@
#include <glib.h> #include <glib.h>
#define PLATE_EVENTMASK (SubstructureRedirectMask | ButtonPressMask) #define PLATE_EVENTMASK (SubstructureRedirectMask | ButtonPressMask)
#define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask) #define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \
ButtonPressMask | ButtonReleaseMask)
#define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \ #define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \
ButtonMotionMask | ExposureMask) ButtonMotionMask | ExposureMask)