MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / windowUnderCursor

Method windowUnderCursor

tools/os.cpp:361–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361Window os::windowUnderCursor(bool includeDecorations)
362{
363 Window root;
364 Window child;
365 uint mask;
366 int rootX, rootY, winX, winY;
367
368 XQueryPointer(QX11Info::display(), QX11Info::appRootWindow(), &root, &child,
369 &rootX, &rootY, &winX, &winY, &mask);
370
371 if (child == None) {
372 child = QX11Info::appRootWindow();
373 }
374
375 if (!includeDecorations) {
376 Window real_child = os::findRealWindow(child);
377
378 if (real_child != None) { // test just in case
379 child = real_child;
380 }
381 }
382
383 return child;
384}
385#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected