add the PointerMotionHintMask everywhere, we dont need every mouse event
Dana Jansens danakj@orodu.net
7 files changed,
12 insertions(+),
8 deletions(-)
M
openbox/client.c
→
openbox/client.c
@@ -52,7 +52,7 @@ /*! The event mask to grab on client windows */
#define CLIENT_EVENTMASK (PropertyChangeMask | StructureNotifyMask) #define CLIENT_NOPROPAGATEMASK (ButtonPressMask | ButtonReleaseMask | \ - ButtonMotionMask) + ButtonMotionMask | PointerMotionHintMask) typedef struct {
M
openbox/dock.c
→
openbox/dock.c
@@ -41,7 +41,7 @@ if (grab) {
grab_button_full(config_dock_app_move_button, config_dock_app_move_modifiers, app->icon_win, ButtonPressMask | ButtonReleaseMask | - ButtonMotionMask, + ButtonMotionMask | PointerMotionHintMask, GrabModeAsync, OB_CURSOR_MOVE); } else { ungrab_button(config_dock_app_move_button,
M
openbox/frame.c
→
openbox/frame.c
@@ -34,7 +34,7 @@ FocusChangeMask)
#define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ ButtonPressMask | ButtonReleaseMask) #define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \ - ButtonMotionMask | \ + ButtonMotionMask | PointerMotionHintMask \ EnterWindowMask | LeaveWindowMask) #define FRAME_HANDLE_Y(f) (f->innersize.top + f->client->area.height + \
M
openbox/grab.c
→
openbox/grab.c
@@ -27,7 +27,8 @@
#include <glib.h> #include <X11/Xlib.h> -#define GRAB_PTR_MASK (ButtonPressMask | ButtonReleaseMask | PointerMotionMask) +#define GRAB_PTR_MASK (ButtonPressMask | ButtonReleaseMask | \ + PointerMotionMask | PointerMotionHintMask) #define GRAB_KEY_MASK (KeyPressMask | KeyReleaseMask) #define MASK_LIST_SIZE 8
M
openbox/mouse.c
→
openbox/mouse.c
@@ -106,7 +106,8 @@
if (FRAME_CONTEXT(i, client)) { win = client->frame->window; mode = GrabModeAsync; - mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask; + mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask | + PointerMotionHintMask; } else if (CLIENT_CONTEXT(i, client)) { win = client->frame->plate; mode = GrabModeSync; /* this is handled in event */
M
openbox/screen.c
→
openbox/screen.c
@@ -47,7 +47,8 @@ /*! The event mask to grab on the root window */
#define ROOT_EVENTMASK (StructureNotifyMask | PropertyChangeMask | \ EnterWindowMask | LeaveWindowMask | \ SubstructureRedirectMask | FocusChangeMask | \ - ButtonPressMask | ButtonReleaseMask | ButtonMotionMask) + ButtonPressMask | ButtonReleaseMask | \ + ButtonMotionMask | PointerMotionHintMask) guint screen_num_desktops; guint screen_num_monitors;