Remove double-grab option. We only want one grab per device.

This commit is contained in:
Peter Hutterer 2007-05-14 12:34:53 +09:30
commit 5c680e9493
9 changed files with 121 additions and 195 deletions

View file

@ -832,9 +832,8 @@ GrabInfoPtr grabinfo;
(_XkbIsReleaseEvent(xE[0].u.u.type)) ) {
return False;
}
/* just coreGrab is fine, pXDev is inputInfo.keyboard (see above) */
if ((pXDev->coreGrab.grab != NullGrab)
&& pXDev->coreGrab.fromPassiveGrab &&
if ((pXDev->deviceGrab.grab != NullGrab)
&& pXDev->deviceGrab.fromPassiveGrab &&
((xE[0].u.u.type==KeyPress)||(xE[0].u.u.type==KeyRelease))) {
register unsigned state,flags;