diff options
author | Isaac Freund <mail@isaacfreund.com> | 2022-02-05 16:32:38 +0100 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2022-02-05 16:32:38 +0100 |
commit | 252b2348bd62170d97c4e81fb2050f757b56d67e (patch) | |
tree | a8b16af7a3fc99ea5e87e1663dac3d60cd9d6ef3 | |
parent | c1a2c09ade789e5667bbe2dc04c6781d37fdab83 (diff) |
wlr_cursor: constify map to region box arguments
-rw-r--r-- | include/wlr/types/wlr_cursor.h | 4 | ||||
-rw-r--r-- | types/wlr_cursor.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/wlr/types/wlr_cursor.h b/include/wlr/types/wlr_cursor.h index 739549c3..7dd73c48 100644 --- a/include/wlr/types/wlr_cursor.h +++ b/include/wlr/types/wlr_cursor.h @@ -192,13 +192,13 @@ void wlr_cursor_map_input_to_output(struct wlr_cursor *cur, /** * Maps this cursor to an arbitrary region on the associated wlr_output_layout. */ -void wlr_cursor_map_to_region(struct wlr_cursor *cur, struct wlr_box *box); +void wlr_cursor_map_to_region(struct wlr_cursor *cur, const struct wlr_box *box); /** * Maps inputs from this input device to an arbitrary region on the associated * wlr_output_layout. */ void wlr_cursor_map_input_to_region(struct wlr_cursor *cur, - struct wlr_input_device *dev, struct wlr_box *box); + struct wlr_input_device *dev, const struct wlr_box *box); #endif diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index 034628cf..3160ca03 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -865,7 +865,7 @@ void wlr_cursor_map_input_to_output(struct wlr_cursor *cur, } void wlr_cursor_map_to_region(struct wlr_cursor *cur, - struct wlr_box *box) { + const struct wlr_box *box) { if (box) { if (wlr_box_empty(box)) { wlr_log(WLR_ERROR, "cannot map cursor to an empty region"); @@ -878,7 +878,7 @@ void wlr_cursor_map_to_region(struct wlr_cursor *cur, } void wlr_cursor_map_input_to_region(struct wlr_cursor *cur, - struct wlr_input_device *dev, struct wlr_box *box) { + struct wlr_input_device *dev, const struct wlr_box *box) { struct wlr_cursor_device *c_device = get_cursor_device(cur, dev); if (!c_device) { wlr_log(WLR_ERROR, "Cannot map device \"%s\" to geometry (not found in" |