MCPcopy Create free account
hub / github.com/clementgallet/libTAS / XGetWindowAttributes

Function XGetWindowAttributes

src/library/xlib/xwindows.cpp:447–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447Status 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
467int XChangeWindowAttributes(Display *display, Window w, unsigned long valuemask, XSetWindowAttributes *attributes)
468{

Callers 2

XGrabPointerFunction · 0.85
ImGui_ImplXlib_InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected