backend/x11: make xcb-xkb optional, remove global state

This commit is contained in:
emersion 2018-03-28 00:26:15 -04:00
parent 8d1b5c7600
commit f033f717a2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 44 additions and 29 deletions

View file

@ -48,6 +48,12 @@ struct wlr_x11_backend {
// The time we last received an event
xcb_timestamp_t time;
#ifdef WLR_HAS_XCB_XKB
bool xkb_supported;
uint8_t xkb_base_event;
uint8_t xkb_base_error;
#endif
struct wl_listener display_destroy;
};