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

Function xcb_create_window

server/faker-xcb.cpp:34–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34xcb_void_cookie_t xcb_create_window(xcb_connection_t *conn, uint8_t depth,
35 xcb_window_t wid, xcb_window_t parent, int16_t x, int16_t y, uint16_t width,
36 uint16_t height, uint16_t border_width, uint16_t _class,
37 xcb_visualid_t visual, uint32_t value_mask, const void *value_list)
38{
39 xcb_void_cookie_t cookie = { 0 };
40
41 TRY();
42
43 if(!fconfig.fakeXCB || IS_EXCLUDED(XCBCONNHASH.getX11Display(conn)))
44 return _xcb_create_window(conn, depth, wid, parent, x, y, width, height,
45 border_width, _class, visual, value_mask, value_list);
46
47 /////////////////////////////////////////////////////////////////////////////
48 OPENTRACE(xcb_create_window); PRARGX(conn); PRARGI(depth); PRARGX(wid);
49 PRARGX(parent); PRARGI(x); PRARGI(y); PRARGI(width); PRARGI(height);
50 PRARGI(border_width); PRARGI(_class); PRARGX(visual); PRARGX(value_mask);
51 STARTTRACE();
52 /////////////////////////////////////////////////////////////////////////////
53
54 cookie = _xcb_create_window(conn, depth, wid, parent, x, y, width, height,
55 border_width, _class, visual, value_mask, value_list);
56 if(cookie.sequence) WINHASH.add(XCBCONNHASH.getX11Display(conn), wid);
57
58 /////////////////////////////////////////////////////////////////////////////
59 STOPTRACE(); CLOSETRACE();
60 /////////////////////////////////////////////////////////////////////////////
61
62 CATCH();
63
64 return cookie;
65}
66
67
68xcb_void_cookie_t xcb_create_window_aux(xcb_connection_t *conn, uint8_t depth,

Callers 1

subWinTestFunction · 0.85

Calls 2

getX11DisplayMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected