never mind on the hint idea, it was fun while it lasted. at least i know it is there now.

This commit is contained in:
Dana Jansens 2007-04-24 01:16:33 +00:00
parent 3a91527fdf
commit 3595da62ca
6 changed files with 7 additions and 11 deletions

View file

@ -41,7 +41,7 @@ static void dock_app_grab_button(ObDockApp *app, gboolean grab)
grab_button_full(config_dock_app_move_button, grab_button_full(config_dock_app_move_button,
config_dock_app_move_modifiers, app->icon_win, config_dock_app_move_modifiers, app->icon_win,
ButtonPressMask | ButtonReleaseMask | ButtonPressMask | ButtonReleaseMask |
ButtonMotionMask | PointerMotionHintMask, ButtonMotionMask,
GrabModeAsync, OB_CURSOR_MOVE); GrabModeAsync, OB_CURSOR_MOVE);
} else { } else {
ungrab_button(config_dock_app_move_button, ungrab_button(config_dock_app_move_button,

View file

@ -34,7 +34,7 @@
#define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ #define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \
ButtonPressMask | ButtonReleaseMask) ButtonPressMask | ButtonReleaseMask)
#define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \ #define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \
ButtonMotionMask | PointerMotionHintMask | \ ButtonMotionMask | \
EnterWindowMask | LeaveWindowMask) EnterWindowMask | LeaveWindowMask)
#define FRAME_HANDLE_Y(f) (f->innersize.top + f->client->area.height + \ #define FRAME_HANDLE_Y(f) (f->innersize.top + f->client->area.height + \

View file

@ -27,8 +27,7 @@
#include <glib.h> #include <glib.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
#define GRAB_PTR_MASK (ButtonPressMask | ButtonReleaseMask | \ #define GRAB_PTR_MASK (ButtonPressMask | ButtonReleaseMask | PointerMotionMask)
PointerMotionMask | PointerMotionHintMask)
#define GRAB_KEY_MASK (KeyPressMask | KeyReleaseMask) #define GRAB_KEY_MASK (KeyPressMask | KeyReleaseMask)
#define MASK_LIST_SIZE 8 #define MASK_LIST_SIZE 8

View file

@ -31,9 +31,8 @@
#define SEPARATOR_HEIGHT 3 #define SEPARATOR_HEIGHT 3
#define MAX_MENU_WIDTH 400 #define MAX_MENU_WIDTH 400
#define FRAME_EVENTMASK (ButtonPressMask |ButtonMotionMask | \ #define FRAME_EVENTMASK (ButtonPressMask |ButtonMotionMask | EnterWindowMask |\
PointerMotionHintMask | \ LeaveWindowMask)
EnterWindowMask | LeaveWindowMask)
#define ENTRY_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ #define ENTRY_EVENTMASK (EnterWindowMask | LeaveWindowMask | \
ButtonPressMask | ButtonReleaseMask) ButtonPressMask | ButtonReleaseMask)

View file

@ -106,8 +106,7 @@ void mouse_grab_for_client(ObClient *client, gboolean grab)
if (FRAME_CONTEXT(i, client)) { if (FRAME_CONTEXT(i, client)) {
win = client->frame->window; win = client->frame->window;
mode = GrabModeAsync; mode = GrabModeAsync;
mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask | mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask;
PointerMotionHintMask;
} else if (CLIENT_CONTEXT(i, client)) { } else if (CLIENT_CONTEXT(i, client)) {
win = client->frame->plate; win = client->frame->plate;
mode = GrabModeSync; /* this is handled in event */ mode = GrabModeSync; /* this is handled in event */

View file

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