MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / focusUpdate

Method focusUpdate

src/pointer_input.cpp:514–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514void PointerInputRedirection::focusUpdate(Window *focusOld, Window *focusNow)
515{
516 if (focusOld && focusOld->isClient()) {
517 focusOld->pointerLeaveEvent();
518 }
519 disconnect(m_focusGeometryConnection);
520 m_focusGeometryConnection = QMetaObject::Connection();
521
522 if (focusNow && focusNow->isClient()) {
523 focusNow->pointerEnterEvent(m_pos);
524 }
525}
526
527void PointerInputRedirection::setEnableConstraints(bool set)
528{

Callers

nothing calls this directly

Calls 3

isClientMethod · 0.45
pointerLeaveEventMethod · 0.45
pointerEnterEventMethod · 0.45

Tested by

no test coverage detected