1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-21 18:03:02 -04:00

x: declare struct x_connection part of the public ABI

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-05-27 19:23:12 +01:00
parent c282bb59f2
commit 6357ea0426
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -56,10 +56,17 @@ typedef struct pending_reply {
} pending_reply_t;
struct x_connection {
// Public fields
// These are part of the public ABI, changing these
// requires bumping PICOM_API_MAJOR.
/// XCB connection.
xcb_connection_t *c;
/// Display in use.
Display *dpy;
/// Default screen
int screen;
// Private fields
/// Head pointer of the error ignore linked list.
pending_reply_t *pending_reply_head;
/// Pointer to the <code>next</code> member of tail element of the error
@ -67,8 +74,6 @@ struct x_connection {
pending_reply_t **pending_reply_tail;
/// Previous handler of X errors
XErrorHandler previous_xerror_handler;
/// Default screen
int screen;
/// Information about the default screen
xcb_screen_t *screen_info;
};