[bobmarley] Stop grabbing Motion events
That fails in GTK+ apps anyway Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a79cb3f927
commit
680555a317
|
@ -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;
|
||||
|
|
12
event.c
12
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
|
||||
*/
|
||||
|
|
1
event.h
1
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 *);
|
||||
|
|
Loading…
Reference in New Issue