skipping the right number of enters now i think
This commit is contained in:
parent
bb7427422c
commit
d2b4e7ddca
1 changed files with 2 additions and 5 deletions
|
@ -48,19 +48,16 @@ static void focus_fallback(gboolean switching_desks)
|
||||||
|
|
||||||
/* skip the next enter event from the desktop switch so focus
|
/* skip the next enter event from the desktop switch so focus
|
||||||
doesn't skip briefly to what was under the pointer */
|
doesn't skip briefly to what was under the pointer */
|
||||||
while (XCheckTypedEvent(ob_display, EnterNotify, &e));
|
if (XCheckTypedEvent(ob_display, EnterNotify, &e)) {
|
||||||
/*
|
|
||||||
XPutBackEvent(ob_display, &e);
|
XPutBackEvent(ob_display, &e);
|
||||||
/\* XXX WERE NOT SKIPPING THEM ALL@&*)! *\/
|
|
||||||
g_message("Skip");
|
|
||||||
++skip_enter;
|
++skip_enter;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/* I have to do this warp twice! Otherwise windows dont get
|
/* I have to do this warp twice! Otherwise windows dont get
|
||||||
Enter/Leave events when i warp on a desktop switch! */
|
Enter/Leave events when i warp on a desktop switch! */
|
||||||
XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0,
|
XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0,
|
||||||
c->area.width / 2, c->area.height / 2);
|
c->area.width / 2, c->area.height / 2);
|
||||||
|
++skip_enter;
|
||||||
XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0,
|
XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0,
|
||||||
c->area.width / 2, c->area.height / 2);
|
c->area.width / 2, c->area.height / 2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue