|
|
@ -326,3 +326,26 @@ static int wlr_xcursor_frame_and_duration(struct wlr_xcursor *cursor,
|
|
|
|
int wlr_xcursor_frame(struct wlr_xcursor *_cursor, uint32_t time) {
|
|
|
|
int wlr_xcursor_frame(struct wlr_xcursor *_cursor, uint32_t time) {
|
|
|
|
return wlr_xcursor_frame_and_duration(_cursor, time, NULL);
|
|
|
|
return wlr_xcursor_frame_and_duration(_cursor, time, NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char *wlr_xcursor_get_resize_name(enum wlr_edges edges) {
|
|
|
|
|
|
|
|
if (edges & WLR_EDGE_TOP) {
|
|
|
|
|
|
|
|
if (edges & WLR_EDGE_RIGHT) {
|
|
|
|
|
|
|
|
return "ne-resize";
|
|
|
|
|
|
|
|
} else if (edges & WLR_EDGE_LEFT) {
|
|
|
|
|
|
|
|
return "nw-resize";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return "n-resize";
|
|
|
|
|
|
|
|
} else if (edges & WLR_EDGE_BOTTOM) {
|
|
|
|
|
|
|
|
if (edges & WLR_EDGE_RIGHT) {
|
|
|
|
|
|
|
|
return "se-resize";
|
|
|
|
|
|
|
|
} else if (edges & WLR_EDGE_LEFT) {
|
|
|
|
|
|
|
|
return "sw-resize";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return "s-resize";
|
|
|
|
|
|
|
|
} else if (edges & WLR_EDGE_RIGHT) {
|
|
|
|
|
|
|
|
return "e-resize";
|
|
|
|
|
|
|
|
} else if (edges & WLR_EDGE_LEFT) {
|
|
|
|
|
|
|
|
return "w-resize";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return "se-resize"; // fallback
|
|
|
|
|
|
|
|
}
|
|
|
|