MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / XConfigureWindow

Function XConfigureWindow

server/faker-x11.cpp:815–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813
814
815int XConfigureWindow(Display *dpy, Window win, unsigned int value_mask,
816 XWindowChanges *values)
817{
818 int retval = 0;
819 TRY();
820
821 if(IS_EXCLUDED(dpy))
822 return _XConfigureWindow(dpy, win, value_mask, values);
823
824 /////////////////////////////////////////////////////////////////////////////
825 OPENTRACE(XConfigureWindow); PRARGD(dpy); PRARGX(win);
826 if(values && (value_mask & CWWidth)) { PRARGI(values->width); }
827 if(values && (value_mask & CWHeight)) { PRARGI(values->height); }
828 STARTTRACE();
829 /////////////////////////////////////////////////////////////////////////////
830
831 faker::VirtualWin *vw;
832 if((vw = WINHASH.find(dpy, win)) != NULL && values)
833 vw->resize(value_mask & CWWidth ? values->width : 0,
834 value_mask & CWHeight ? values->height : 0);
835 faker::EGLXVirtualWin *eglxvw;
836 if((eglxvw = EGLXWINHASH.find(dpy, win)) != NULL && values)
837 eglxvw->resize(value_mask & CWWidth ? values->width : 0,
838 value_mask & CWHeight ? values->height : 0);
839 retval = _XConfigureWindow(dpy, win, value_mask, values);
840
841 /////////////////////////////////////////////////////////////////////////////
842 STOPTRACE(); CLOSETRACE();
843 /////////////////////////////////////////////////////////////////////////////
844
845 CATCH();
846 return retval;
847}
848
849
850int XMaskEvent(Display *dpy, long event_mask, XEvent *xe)

Callers 3

multiThreadTestFunction · 0.85
multiThreadTestFunction · 0.85
resizeWindowFunction · 0.85

Calls 2

findMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected