From 680555a317e11432db393f99e09412f4ff8b1965 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 2 Apr 2008 11:39:11 +0200 Subject: [PATCH] [bobmarley] Stop grabbing Motion events That fails in GTK+ apps anyway Signed-off-by: Julien Danjou --- awesome.c | 3 +-- event.c | 12 ------------ event.h | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/awesome.c b/awesome.c index 8e74e20d..ff10cb1c 100644 --- a/awesome.c +++ b/awesome.c @@ -283,7 +283,7 @@ main(int argc, char *argv[]) /* select for events */ wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask - | EnterWindowMask | LeaveWindowMask | StructureNotifyMask | PointerMotionMask; + | EnterWindowMask | LeaveWindowMask | StructureNotifyMask; wa.cursor = globalconf.cursor[CurNormal]; /* do this only for real screen */ @@ -311,7 +311,6 @@ main(int argc, char *argv[]) handler[DestroyNotify] = event_handle_destroynotify; handler[EnterNotify] = event_handle_enternotify; handler[LeaveNotify] = event_handle_leavenotify; - handler[MotionNotify] = event_handle_motionnotify; handler[Expose] = event_handle_expose; handler[KeyPress] = event_handle_keypress; handler[MappingNotify] = event_handle_mappingnotify; diff --git a/event.c b/event.c index 9ab4b1cd..72ebb762 100644 --- a/event.c +++ b/event.c @@ -286,18 +286,6 @@ event_handle_enternotify(XEvent *e) } } -/** Handle XMotion events - * \param e XEvent - */ -void -event_handle_motionnotify(XEvent *e) -{ - XMotionEvent *ev = &e->xmotion; - - globalconf.pointer_x = ev->x_root; - globalconf.pointer_y = ev->y_root; -} - /** Handle XExpose events * \param e XEvent */ diff --git a/event.h b/event.h index d984ae7e..53a36849 100644 --- a/event.h +++ b/event.h @@ -31,7 +31,6 @@ void event_handle_configurerequest(XEvent *); void event_handle_configurenotify(XEvent *); void event_handle_destroynotify(XEvent *); void event_handle_enternotify(XEvent *); -void event_handle_motionnotify(XEvent *); void event_handle_expose(XEvent *); void event_handle_keypress(XEvent *); void event_handle_leavenotify(XEvent *);