Bugfix: Ignore enter_notify when warping pointer (makes "goto" work correctly)

This commit is contained in:
Michael Stapelberg
2010-03-27 17:04:56 +01:00
parent 2a3d44a794
commit 7d6e80b5ef
4 changed files with 26 additions and 3 deletions

View File

@ -46,7 +46,13 @@
changing workspaces */
static SLIST_HEAD(ignore_head, Ignore_Event) ignore_events;
static void add_ignore_event(const int sequence) {
/*
* Adds the sequence number of an event to the ignored events.
* Useful to ignore for example the enter notify caused by a pointer warp of
* i3.
*
*/
void add_ignore_event(const int sequence) {
struct Ignore_Event *event = smalloc(sizeof(struct Ignore_Event));
event->sequence = sequence;