| 359 | } |
| 360 | |
| 361 | Window 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 |
nothing calls this directly
no outgoing calls
no test coverage detected