MCPcopy Create free account
hub / github.com/deskflow/deskflow / getCursorPos

Method getCursorPos

src/lib/platform/XWindowsScreen.cpp:459–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459void XWindowsScreen::getCursorPos(int32_t &x, int32_t &y) const
460{
461 Window root;
462 Window window;
463 int mx;
464 int my;
465 int xWindow;
466 int yWindow;
467 unsigned int mask;
468 if (XQueryPointer(m_display, m_root, &root, &window, &mx, &my, &xWindow, &yWindow, &mask)) {
469 x = mx;
470 y = my;
471 } else {
472 x = m_xCenter;
473 y = m_yCenter;
474 }
475}
476
477void XWindowsScreen::reconfigure(uint32_t activeSides)
478{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected