Lines Matching refs:mouse
1435 * @param mouse The device to grab.
1441 ActivatePointerGrab(DeviceIntPtr mouse, GrabPtr grab,
1444 GrabInfoPtr grabinfo = &mouse->deviceGrab;
1447 : mouse->spriteInfo->sprite->win;
1452 !(autoGrab & ImplicitGrabMask) && !IsMaster(mouse))
1453 DetachFromMaster(mouse);
1458 != mouse->spriteInfo->sprite->hotPhys.pScreen)
1459 mouse->spriteInfo->sprite->hotPhys.x =
1460 mouse->spriteInfo->sprite->hotPhys.y = 0;
1461 ConfineCursorToWindow(mouse, grab->confineTo, FALSE, TRUE);
1463 DoEnterLeaveEvents(mouse, mouse->id, oldWin, grab->window, NotifyGrab);
1464 mouse->valuator->motionHintWindow = NullWindow;
1475 PostNewCursor(mouse);
1476 CheckGrabForSyncs(mouse,(Bool)grab->pointerMode, (Bool)grab->keyboardMode);
1485 DeactivatePointerGrab(DeviceIntPtr mouse)
1487 GrabPtr grab = mouse->deviceGrab.grab;
1489 Bool wasImplicit = (mouse->deviceGrab.fromPassiveGrab &&
1490 mouse->deviceGrab.implicitGrab);
1492 mouse->valuator->motionHintWindow = NullWindow;
1493 mouse->deviceGrab.grab = NullGrab;
1494 mouse->deviceGrab.sync.state = NOT_GRABBED;
1495 mouse->deviceGrab.fromPassiveGrab = FALSE;
1502 DoEnterLeaveEvents(mouse, mouse->id, grab->window,
1503 mouse->spriteInfo->sprite->win, NotifyUngrab);
1505 ConfineCursorToWindow(mouse, GetCurrentRootWindow(mouse), FALSE, FALSE);
1506 PostNewCursor(mouse);
1511 ReattachToOldMaster(mouse);
1720 DeviceIntPtr mouse = NULL;
1727 mouse = PickPointer(client);
1733 AllowSome(client, time, mouse, NOT_GRABBED);
1736 AllowSome(client, time, mouse, FREEZE_NEXT_EVENT);
1739 AllowSome(client, time, mouse, THAWED);
2984 * Update the mouse sprite info when the server switches from a pScreen to another.
2985 * Otherwise, the pScreen of the mouse sprite is never updated when we switch
2986 * from a pScreen to another. Never updating the pScreen of the mouse sprite
2995 * reset the mouse pointer position.
4155 DeviceIntPtr mouse,
4165 GrabPtr grab = mouse->deviceGrab.grab;
4168 keybd = GetPairedDevice(mouse);
4170 if ((pWin == mouse->valuator->motionHintWindow) &&
4172 mouse->valuator->motionHintWindow = NullWindow;
4188 event.u.enterLeave.rootX = mouse->spriteInfo->sprite->hot.x;
4189 event.u.enterLeave.rootY = mouse->spriteInfo->sprite->hot.y;
4191 FixUpEventFromWindow(mouse->spriteInfo->sprite, &event, pWin, None, FALSE);
4196 event.u.enterLeave.state = mouse->button ? (mouse->button->state & 0x1f00) : 0;
4207 if ((mask & GetEventFilter(mouse, &event)))
4210 TryClientEvents(rClient(grab), mouse, &event, 1, mask,
4211 GetEventFilter(mouse, &event), grab);
4213 DeliverEventsToWindow(mouse, pWin, &event, 1,
4214 GetEventFilter(mouse, &event),
4232 DeliverEventsToWindow(mouse, pWin, (xEvent *)&ke, 1,
4239 DeviceIntPtr mouse,
4247 GrabPtr grab = mouse->deviceGrab.grab;
4257 btlen = (mouse->button) ? bits_to_bytes(mouse->button->numButtons) : 0;
4269 event->deviceid = mouse->id;
4272 event->root_x = FP1616(mouse->spriteInfo->sprite->hot.x, 0);
4273 event->root_y = FP1616(mouse->spriteInfo->sprite->hot.y, 0);
4275 for (i = 0; mouse && mouse->button && i < mouse->button->numButtons; i++)
4276 if (BitIsOn(mouse->button->down, i))
4279 kbd = (IsMaster(mouse) || mouse->u.master) ? GetPairedDevice(mouse) : NULL;
4291 FixUpEventFromWindow(mouse->spriteInfo->sprite, (xEvent*)event, pWin,
4294 filter = GetEventFilter(mouse, (xEvent*)event);
4301 grab->xi2mask[mouse->id][type/8];
4302 TryClientEvents(rClient(grab), mouse, (xEvent*)event, 1, mask,
4305 if (!GetWindowXI2Mask(mouse, pWin, (xEvent*)event))
4307 DeliverEventsToWindow(mouse, pWin, (xEvent*)event, 1, filter,
4854 DeviceIntPtr mouse = PickPointer(client);
4864 rc = XaceHook(XACE_DEVICE_ACCESS, client, mouse, DixReadAccess);
4868 keyboard = GetPairedDevice(mouse);
4870 pSprite = mouse->spriteInfo->sprite;
4871 if (mouse->valuator->motionHintWindow)
4872 MaybeStopHint(mouse, client);
4876 rep.mask = mouse->button ? (mouse->button->state) : 0;
4879 rep.root = (GetCurrentRootWindow(mouse))->drawable.id;
5360 DeviceIntPtr mouse = inputInfo.pointer;
5370 grab = mouse->deviceGrab.grab;
5373 (*mouse->deviceGrab.DeactivateGrab)(mouse);
5382 for (mouse = inputInfo.devices; mouse; mouse = mouse->next)
5384 grab = mouse->deviceGrab.grab;
5386 (*mouse->deviceGrab.DeactivateGrab)(mouse);