From d4892a2cbec497b0fed1334ae17e0c7998834b48 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 24 Apr 2020 20:10:41 +0200 Subject: Third commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 21 +++++++++++++++++++++ libaxl-display-info.h | 5 +++++ libaxl_receive_handshake.c | 1 + 3 files changed, 27 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..c9c3781 --- /dev/null +++ b/README @@ -0,0 +1,21 @@ +libaxl is a currently under develop X library, and is not +in a usable state (please help write man pages if you want +it really sooner). + +The goals of libaxl is: + +* Use asynchronous communication model (unlike libX11) + +* Use as few memory allocations as possible (unlike XCB) + +* Always use proper namespacing (unlike libX11) + +* Do not use aggregate returns (unlike XCB) + +* Abstract away as little as reasonable possible (unlike XCB and libX11) + +* But do not require the user to know about the order of bits in bitmasks (unlike XCB) + +* Be as tiny as possible without removing functionality (unlike XCB and libX11) + +* Be thread-safe by default (unlike libX11) diff --git a/libaxl-display-info.h b/libaxl-display-info.h index 71cf80f..1d00a67 100644 --- a/libaxl-display-info.h +++ b/libaxl-display-info.h @@ -298,4 +298,9 @@ struct libaxl_display_info { * List of all screens in the display */ const struct libaxl_format *screens; + + /** + * The default screen + */ + const struct libaxl_format *default_screen; }; diff --git a/libaxl_receive_handshake.c b/libaxl_receive_handshake.c index 5e193e2..036a10a 100644 --- a/libaxl_receive_handshake.c +++ b/libaxl_receive_handshake.c @@ -194,6 +194,7 @@ continue_read: conn->info.vendor = inbuf; conn->info.formats = (void *)&inbuf[t]; conn->info.screens = (void *)&inbuf[t + conn->info.nformats * 8]; + conn->info.default_screens = conn->info.screens; ctx->in_buf_size = 0; ctx->in_buf = NULL; -- cgit v1.2.3-70-g09d2