diff options
author | Jamey Sharp <jamey@minilop.net> | 2004-06-15 13:33:52 +0000 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2004-06-15 13:33:52 +0000 |
commit | 17280a1d738c1b17b97c8c7712686dba5bb9ae37 (patch) | |
tree | 4e223ee996f5c73f3f21019024ed198536445c36 /xcb-demo | |
parent | 7d56b53690dfe3b784899d98abeef49754e98eb7 (diff) |
Fix BadMatch error from CreateWindow due to bad depth on some servers.
Diffstat (limited to 'xcb-demo')
-rw-r--r-- | xcb-demo/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xcb-demo/main.c b/xcb-demo/main.c index 7e4bd10..981ce03 100644 --- a/xcb-demo/main.c +++ b/xcb-demo/main.c @@ -98,7 +98,7 @@ int main(int argc, char **argv) mask |= XCBCWDontPropagate; values[5] = ButtonPressMask; - XCBCreateWindow(c, XCBSCREENAllowedDepths(root).data->depth, + XCBCreateWindow(c, /* depth */ 0, window, root->root, /* x */ 20, /* y */ 200, /* width */ 150, /* height */ 150, /* border_width */ 10, /* class */ InputOutput, |