|
|
@ -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,
|
|
|
|
void wlr_cursor_map_to_region(struct wlr_cursor *cur,
|
|
|
|
struct wlr_box *box) {
|
|
|
|
const struct wlr_box *box) {
|
|
|
|
if (box) {
|
|
|
|
if (box) {
|
|
|
|
if (wlr_box_empty(box)) {
|
|
|
|
if (wlr_box_empty(box)) {
|
|
|
|
wlr_log(WLR_ERROR, "cannot map cursor to an empty region");
|
|
|
|
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,
|
|
|
|
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);
|
|
|
|
struct wlr_cursor_device *c_device = get_cursor_device(cur, dev);
|
|
|
|
if (!c_device) {
|
|
|
|
if (!c_device) {
|
|
|
|
wlr_log(WLR_ERROR, "Cannot map device \"%s\" to geometry (not found in"
|
|
|
|
wlr_log(WLR_ERROR, "Cannot map device \"%s\" to geometry (not found in"
|
|
|
|