From 6bf508df816750f41b9b0c362f5bc6f64f737a70 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Thu, 28 Sep 2017 23:16:35 +1300 Subject: Add closing with WM button --- include/backend/x11.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/backend') 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 -- cgit v1.2.3