[bobmarley] Stop grabbing Motion events

That fails in GTK+ apps anyway

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-02 11:39:11 +02:00
parent a79cb3f927
commit 680555a317
3 changed files with 1 additions and 15 deletions

View File

@ -283,7 +283,7 @@ main(int argc, char *argv[])
/* select for events */ /* select for events */
wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
| EnterWindowMask | LeaveWindowMask | StructureNotifyMask | PointerMotionMask; | EnterWindowMask | LeaveWindowMask | StructureNotifyMask;
wa.cursor = globalconf.cursor[CurNormal]; wa.cursor = globalconf.cursor[CurNormal];
/* do this only for real screen */ /* do this only for real screen */
@ -311,7 +311,6 @@ main(int argc, char *argv[])
handler[DestroyNotify] = event_handle_destroynotify; handler[DestroyNotify] = event_handle_destroynotify;
handler[EnterNotify] = event_handle_enternotify; handler[EnterNotify] = event_handle_enternotify;
handler[LeaveNotify] = event_handle_leavenotify; handler[LeaveNotify] = event_handle_leavenotify;
handler[MotionNotify] = event_handle_motionnotify;
handler[Expose] = event_handle_expose; handler[Expose] = event_handle_expose;
handler[KeyPress] = event_handle_keypress; handler[KeyPress] = event_handle_keypress;
handler[MappingNotify] = event_handle_mappingnotify; handler[MappingNotify] = event_handle_mappingnotify;

12
event.c
View File

@ -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 /** Handle XExpose events
* \param e XEvent * \param e XEvent
*/ */

View File

@ -31,7 +31,6 @@ void event_handle_configurerequest(XEvent *);
void event_handle_configurenotify(XEvent *); void event_handle_configurenotify(XEvent *);
void event_handle_destroynotify(XEvent *); void event_handle_destroynotify(XEvent *);
void event_handle_enternotify(XEvent *); void event_handle_enternotify(XEvent *);
void event_handle_motionnotify(XEvent *);
void event_handle_expose(XEvent *); void event_handle_expose(XEvent *);
void event_handle_keypress(XEvent *); void event_handle_keypress(XEvent *);
void event_handle_leavenotify(XEvent *); void event_handle_leavenotify(XEvent *);