diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-12 10:29:36 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-17 20:47:57 +0000 |
| commit | bb4d9a5fd33cf1a7c08c096721e5640022de0315 (patch) | |
| tree | 2d796d3b1479af2c278cf6398ada9ee4448cb0ed /wayland.h | |
| parent | csi: ‘CSI 13 ; 2 t’ reply is now (0,0) (diff) | |
wayland: add wayl_win_subsurface_new() and wayl_win_subsurface_destroy()
These are utility functions to create a Wayland subsurface associated
with the window.
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -350,6 +350,11 @@ struct monitor { bool use_output_release; }; +struct wl_surf_subsurf { + struct wl_surface *surf; + struct wl_subsurface *sub; +}; + struct wl_url { const struct url *url; struct wl_surface *surf; @@ -453,10 +458,17 @@ struct wayland { struct wayland *wayl_init(const struct config *conf, struct fdm *fdm); void wayl_destroy(struct wayland *wayl); +bool wayl_reload_xcursor_theme(struct seat *seat, int new_scale); + void wayl_flush(struct wayland *wayl); void wayl_roundtrip(struct wayland *wayl); struct wl_window *wayl_win_init(struct terminal *term); void wayl_win_destroy(struct wl_window *win); -bool wayl_reload_xcursor_theme(struct seat *seat, int new_scale); +bool wayl_win_subsurface_new( + struct wl_window *win, struct wl_surf_subsurf *surf); +bool wayl_win_subsurface_new_with_custom_parent( + struct wl_window *win, struct wl_surface *parent, + struct wl_surf_subsurf *surf); +void wayl_win_subsurface_destroy(struct wl_surf_subsurf *surf); |
