diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-02 12:28:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-02 12:28:31 -0400 |
commit | 62734d05535bd0137f3239f3d7639438961868fe (patch) | |
tree | c19f95400b1529ba32148755b038e7db386c8d8e /xwayland/xwm.h | |
parent | 2d4e02969dd5ec208bbd36adab0ae1e6fc028638 (diff) | |
parent | 900fb326f7608695a160a2ce645db94f33df7f87 (diff) |
Merge pull request #380 from emersion/xwayland-root-cursor
Set xwayland root cursor
Diffstat (limited to 'xwayland/xwm.h')
-rw-r--r-- | xwayland/xwm.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xwayland/xwm.h b/xwayland/xwm.h index 7d30d278..547cd5eb 100644 --- a/xwayland/xwm.h +++ b/xwayland/xwm.h @@ -1,5 +1,7 @@ #ifndef XWAYLAND_INTERNALS_H #define XWAYLAND_INTERNALS_H + +#include <xcb/render.h> #include <wayland-server-core.h> #include <wlr/xwayland.h> @@ -49,6 +51,8 @@ struct wlr_xwm { xcb_window_t window; xcb_visualid_t visual_id; xcb_colormap_t colormap; + xcb_render_pictformat_t render_format_id; + xcb_cursor_t cursor; struct wlr_xwayland_surface *focus_surface; @@ -60,8 +64,11 @@ struct wlr_xwm { struct wl_listener compositor_surface_create; }; +struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland); + void xwm_destroy(struct wlr_xwm *xwm); -struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland); +void xwm_set_cursor(struct wlr_xwm *xwm, const uint8_t *pixels, uint32_t stride, + uint32_t width, uint32_t height, int32_t hotspot_x, int32_t hotspot_y); #endif |