| 231 | } |
| 232 | |
| 233 | void 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 | |
| 252 | void Dock::pointerLeaveEvent(const LPointerLeaveEvent &) |
| 253 | { |
no test coverage detected