| 445 | } |
| 446 | |
| 447 | Status XGetWindowAttributes(Display* display, Window w, XWindowAttributes* window_attributes_return) |
| 448 | { |
| 449 | LINK_NAMESPACE_GLOBAL(XGetWindowAttributes); |
| 450 | if (GlobalState::isNative()) |
| 451 | return orig::XGetWindowAttributes(display, w, window_attributes_return); |
| 452 | |
| 453 | LOG(LL_TRACE, LCF_WINDOW, "%s called with window %d", __func__, w); |
| 454 | Status ret = orig::XGetWindowAttributes(display, w, window_attributes_return); |
| 455 | if (ret == 0) |
| 456 | return ret; |
| 457 | |
| 458 | /* Update the window size */ |
| 459 | ScreenCapture::getDimensions(window_attributes_return->width, window_attributes_return->height); |
| 460 | |
| 461 | /* Change the window position to stored coords */ |
| 462 | XlibGameWindow::getCoords(w, &window_attributes_return->x, &window_attributes_return->y); |
| 463 | |
| 464 | return ret; |
| 465 | } |
| 466 | |
| 467 | int XChangeWindowAttributes(Display *display, Window w, unsigned long valuemask, XSetWindowAttributes *attributes) |
| 468 | { |
no outgoing calls
no test coverage detected