MCPcopy Create free account
hub / github.com/CuarzoSoftware/Louvre / pointerMoveEvent

Method pointerMoveEvent

src/examples/louvre-views/src/Dock.cpp:233–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void Dock::pointerMoveEvent(const LPointerMoveEvent &)
234{
235 if (!seat()->toplevelMoveSessions().empty() || !seat()->toplevelResizeSessions().empty())
236 return;
237
238 if (visiblePercent == 1.f && !G::pointer()->cursorOwner)
239 {
240 G::pointer()->cursorOwner = this;
241 cursor()->useDefault();
242 cursor()->setVisible(true);
243 update();
244 }
245
246 if (showResistanceCount > showResistance)
247 show();
248 else
249 showResistanceCount++;
250}
251
252void Dock::pointerLeaveEvent(const LPointerLeaveEvent &)
253{

Callers 1

paintGLMethod · 0.45

Calls 4

updateFunction · 0.85
emptyMethod · 0.80
useDefaultMethod · 0.80
setVisibleMethod · 0.45

Tested by

no test coverage detected