aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README21
-rw-r--r--libaxl-display-info.h5
-rw-r--r--libaxl_receive_handshake.c1
3 files changed, 27 insertions, 0 deletions
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;