| 849 | } |
| 850 | |
| 851 | void XServer::pointerMoved(const XWindowPtr& from, const XWindowPtr& to, S32 x, S32 y, U32 mode) { |
| 852 | const XWindowPtr& commonAncestor = from->getLeastCommonAncestor(to); |
| 853 | |
| 854 | if (commonAncestor->id == from->id) { |
| 855 | pointerMovedParentToChild(from, to, x, y, mode); |
| 856 | } else if (commonAncestor->id == to->id) { |
| 857 | pointerMovedChildToParent(from, to, x, y, mode); |
| 858 | } else { |
| 859 | pointerMovedBetweenSiblings(from, to, commonAncestor, x, y, mode); |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | int XServer::mapWindow(const DisplayDataPtr& data, const XWindowPtr& window) { |
| 864 | if (server->trace) { |
no test coverage detected