aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-08 09:12:19 -0500
committerGitHub <noreply@github.com>2017-12-08 09:12:19 -0500
commit381a646d2fbcb1b488e1551438444ac267f39138 (patch)
treeb98ef734c63b87e8fed0bec994c7db6379cc427d /include
parent703df2a6711322fac90581f2005750b5a72dd148 (diff)
parent15bb9a53b438eb37ed5ae7c0836b7ec8a3b6b35e (diff)
Merge pull request #473 from emersion/cursor-enter-leave
Send wl_surface.{enter,leave} to cursor surfaces
Diffstat (limited to 'include')
-rw-r--r--include/rootston/xcursor.h2
-rw-r--r--include/wlr/types/wlr_output.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/rootston/xcursor.h b/include/rootston/xcursor.h
index 285db78d..a7d2b960 100644
--- a/include/rootston/xcursor.h
+++ b/include/rootston/xcursor.h
@@ -3,7 +3,7 @@
#include <stdint.h>
-#define ROOTS_XCURSOR_SIZE 16
+#define ROOTS_XCURSOR_SIZE 24
#define ROOTS_XCURSOR_DEFAULT "left_ptr"
#define ROOTS_XCURSOR_MOVE "grabbing"
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 42c46233..895536e1 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -16,6 +16,7 @@ struct wlr_output_cursor {
struct wlr_output *output;
double x, y;
bool enabled;
+ bool visible;
uint32_t width, height;
int32_t hotspot_x, hotspot_y;
struct wl_list link;
@@ -98,6 +99,9 @@ void wlr_output_set_fullscreen_surface(struct wlr_output *output,
struct wlr_surface *surface);
struct wlr_output_cursor *wlr_output_cursor_create(struct wlr_output *output);
+/**
+ * Sets the cursor image. The image must be already scaled for the output.
+ */
bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor,
const uint8_t *pixels, int32_t stride, uint32_t width, uint32_t height,
int32_t hotspot_x, int32_t hotspot_y);