aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-13 14:47:32 -0500
committerGitHub <noreply@github.com>2018-11-13 14:47:32 -0500
commit040d62de0076a349612b7c2c28c5dc5e93bb9760 (patch)
treeedc8a95751531a3d62423d1e5630ea0eb98d3ffe /include
parentdf7d4a71fb52d47279a93ee398220ff63d916ab7 (diff)
parent1b9ebcf6452c913603d38da2685c56e55ee13063 (diff)
Merge pull request #1366 from emersion/render-software-cursors
Render software cursors in compositor
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 9ccfbbb5..557a3895 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -106,11 +106,6 @@ struct wlr_output {
struct wl_event_source *idle_frame;
- struct wlr_surface *fullscreen_surface;
- struct wl_listener fullscreen_surface_commit;
- struct wl_listener fullscreen_surface_destroy;
- int fullscreen_width, fullscreen_height;
-
struct wl_list cursors; // wlr_output_cursor::link
struct wlr_output_cursor *hardware_cursor;
int software_cursor_locks; // number of locks forcing software cursors
@@ -226,8 +221,6 @@ bool wlr_output_set_gamma(struct wlr_output *output, size_t size,
const uint16_t *r, const uint16_t *g, const uint16_t *b);
bool wlr_output_export_dmabuf(struct wlr_output *output,
struct wlr_dmabuf_attributes *attribs);
-void wlr_output_set_fullscreen_surface(struct wlr_output *output,
- struct wlr_surface *surface);
struct wlr_output *wlr_output_from_resource(struct wl_resource *resource);
/**
* Locks the output to only use software cursors instead of hardware cursors.
@@ -237,6 +230,12 @@ struct wlr_output *wlr_output_from_resource(struct wl_resource *resource);
* a lock.
*/
void wlr_output_lock_software_cursors(struct wlr_output *output, bool lock);
+/**
+ * Renders software cursors. This is a utility function that can be called when
+ * compositors render.
+ */
+void wlr_output_render_software_cursors(struct wlr_output *output,
+ pixman_region32_t *damage);
struct wlr_output_cursor *wlr_output_cursor_create(struct wlr_output *output);