]> Dogcows Code - chaz/openbox/commitdiff
add the PointerMotionHintMask everywhere, we dont need every mouse event
authorDana Jansens <danakj@orodu.net>
Tue, 24 Apr 2007 01:00:27 +0000 (01:00 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 24 Apr 2007 01:00:27 +0000 (01:00 +0000)
openbox/client.c
openbox/dock.c
openbox/frame.c
openbox/grab.c
openbox/menuframe.c
openbox/mouse.c
openbox/screen.c

index 08d316c49d67da9448ccc4e10105b33b57b1470a..f2feefdff9fb5f6092b1d1e71ad0029fdc3942a1 100644 (file)
@@ -52,7 +52,7 @@
 #define CLIENT_EVENTMASK (PropertyChangeMask | StructureNotifyMask)
 
 #define CLIENT_NOPROPAGATEMASK (ButtonPressMask | ButtonReleaseMask | \
-                                ButtonMotionMask)
+                                ButtonMotionMask | PointerMotionHintMask)
 
 typedef struct
 {
index 2e191f1c5a883c5f5273f326c6f28dfc1ac45757..8433c260889cd637a1b283411d5f494bd3b553b7 100644 (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,
index eb223f64737e90ce0e0ef15eda752ba37081e48c..41859206c9a1be2e5307692f62fa7319432cd33a 100644 (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 + \
index e7bd41d957deb1a75ee05587c9195a6a9681a41b..a382c1adc31a7427094214872cb324a15d2fe0ec 100644 (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
index 4cb2083dc1c7294b4d73114d322a136594beea22..c6a333a9a86ac8193d007df49f027108163bc62b 100644 (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)
 
index 27172d525c614c7933b297d1f9108e3947c7edd6..55f1bf535b99b7462f49aabbeba7af2bca802d9a 100644 (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 */
index 74b8e71db4d8c42f553dadab2427cf9b0e9bebba..e8ef385748aa799956fb96155d522457d6fdc0d0 100644 (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;
This page took 0.038851 seconds and 4 git commands to generate.