| 419 | } |
| 420 | |
| 421 | void XWindow::getMouse(int& x, int& y) const { |
| 422 | Window rootWindow, childWindow; |
| 423 | int rootX, rootY; |
| 424 | unsigned int mask; |
| 425 | int mx, my; |
| 426 | XQueryPointer(display->getDisplay(), window, |
| 427 | &rootWindow, &childWindow, |
| 428 | &rootX, &rootY, &mx, &my, &mask); |
| 429 | x = mx; |
| 430 | y = my; |
| 431 | } |
| 432 | |
| 433 | void XWindow::grabMouse() { |
| 434 | XGrabPointer(display->getDisplay(), window, |
no test coverage detected