MCPcopy Create free account
hub / github.com/KDE/kwin / implicitGrabPositionBySerial

Method implicitGrabPositionBySerial

src/input.cpp:3552–3565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3550}
3551
3552std::optional<QPointF> InputRedirection::implicitGrabPositionBySerial(SeatInterface *seat, uint32_t serial) const
3553{
3554 if (seat->hasImplicitPointerGrab(serial)) {
3555 return m_pointer->pos();
3556 }
3557 if (seat->hasImplicitTouchGrab(serial)) {
3558 return m_touch->position();
3559 }
3560 if (waylandServer()->tabletManagerV2()->seat(seat)->hasImplicitGrab(serial)) {
3561 return m_tablet->position();
3562 }
3563
3564 return std::nullopt;
3565}
3566
3567void InputRedirection::startInteractiveWindowSelection(std::function<void(Window *)> callback, const QByteArray &cursorName)
3568{

Callers 4

handleMoveRequestedMethod · 0.80
handleResizeRequestedMethod · 0.80
handleMoveRequestedMethod · 0.80
handleResizeRequestedMethod · 0.80

Calls 7

waylandServerFunction · 0.85
hasImplicitTouchGrabMethod · 0.80
hasImplicitGrabMethod · 0.80
posMethod · 0.45
positionMethod · 0.45
seatMethod · 0.45

Tested by

no test coverage detected