aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-09-28 23:16:35 +1300
committerScott Anderson <ascent12@hotmail.com>2017-09-29 16:15:09 +1300
commit6bf508df816750f41b9b0c362f5bc6f64f737a70 (patch)
tree6530979b7500f64e29961598b3e5e4b0f9d6f5a7 /include/backend
parentce76cfba0f36232256f42907616cb97b2cd38055 (diff)
Add closing with WM button
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/x11.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/backend/x11.h b/include/backend/x11.h
index c46c944f..a22005a2 100644
--- a/include/backend/x11.h
+++ b/include/backend/x11.h
@@ -19,8 +19,14 @@ struct wlr_x11_output {
EGLSurface surf;
};
+struct wlr_x11_atom {
+ xcb_intern_atom_cookie_t cookie;
+ xcb_intern_atom_reply_t *reply;
+};
+
struct wlr_x11_backend {
struct wlr_backend backend;
+ struct wl_display *wl_display;
Display *xlib_conn;
xcb_connection_t *xcb_conn;
@@ -37,6 +43,11 @@ struct wlr_x11_backend {
struct wlr_egl egl;
struct wl_event_source *event_source;
struct wl_event_source *frame_timer;
+
+ struct {
+ struct wlr_x11_atom wm_protocols;
+ struct wlr_x11_atom wm_delete_window;
+ } atoms;
};
#endif