Return connection failure if display string specifies non-existent screen
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 25 Aug 2012 20:53:37 +0000 (13:53 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 30 Aug 2012 05:00:55 +0000 (22:00 -0700)
commitff53285ae3f604e9f2cc5f4837255220459b5e44
tree1d6a959cc46f71355b22bdfb42bf460e83ff83c6
parent90889794ad882a6847bcffe52c4cc5dfd168f1f4
Return connection failure if display string specifies non-existent screen

Matches the behaviour of Xlib - if you set DISPLAY to :0.1 but only have
one screen, closes connection and returns error.

This introduces a new connection error code:
XCB_CONN_CLOSED_INVALID_SCREEN

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
src/xcb.h
src/xcb_conn.c
src/xcb_util.c