add the PointerMotionHintMask everywhere, we dont need every mouse event

This commit is contained in:
Dana Jansens 2007-04-24 01:00:27 +00:00
parent 3993847dd4
commit a488360f48
7 changed files with 12 additions and 8 deletions

View file

@ -52,7 +52,7 @@
#define CLIENT_EVENTMASK (PropertyChangeMask | StructureNotifyMask)
#define CLIENT_NOPROPAGATEMASK (ButtonPressMask | ButtonReleaseMask | \
ButtonMotionMask)
ButtonMotionMask | PointerMotionHintMask)
typedef struct
{

View file

@ -41,7 +41,7 @@ static void dock_app_grab_button(ObDockApp *app, gboolean 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,

View file

@ -34,7 +34,7 @@
#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 + \

View file

@ -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

View file

@ -31,8 +31,9 @@
#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)

View file

@ -106,7 +106,8 @@ void mouse_grab_for_client(ObClient *client, gboolean grab)
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 */

View file

@ -47,7 +47,8 @@
#define ROOT_EVENTMASK (StructureNotifyMask | PropertyChangeMask | \
EnterWindowMask | LeaveWindowMask | \
SubstructureRedirectMask | FocusChangeMask | \
ButtonPressMask | ButtonReleaseMask | ButtonMotionMask)
ButtonPressMask | ButtonReleaseMask | \
ButtonMotionMask | PointerMotionHintMask)
guint screen_num_desktops;
guint screen_num_monitors;