all repos — openbox @ a488360f48abbfd6e67576a1844d792b28e6065c

openbox fork - make it a bit more like ryudo

add the PointerMotionHintMask everywhere, we dont need every mouse event
Dana Jansens danakj@orodu.net
commit

a488360f48abbfd6e67576a1844d792b28e6065c

parent

3993847dd4142efc1c111c9d603465d9261c1999

M openbox/client.copenbox/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.copenbox/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.copenbox/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.copenbox/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/menuframe.copenbox/menuframe.c

@@ -31,8 +31,9 @@ #define PADDING 2

#define SEPARATOR_HEIGHT 3 #define MAX_MENU_WIDTH 400 -#define FRAME_EVENTMASK (ButtonPressMask |ButtonMotionMask | EnterWindowMask |\ - LeaveWindowMask) +#define FRAME_EVENTMASK (ButtonPressMask |ButtonMotionMask | \ + PointerMotionHintMask | \ + EnterWindowMask | LeaveWindowMask) #define ENTRY_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ ButtonPressMask | ButtonReleaseMask)
M openbox/mouse.copenbox/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.copenbox/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;