CN4FS77B6FLSEDGAQ4R5YGHS56TNW7IGUR7RK4HKCLDX2627VBKAC
D425ND7AT3F7QJ3CCSESMVDOC3J5C5P32M5SJDBHECZJXLHNQ2FAC
7B74AT3BXYB7PVW4F6SGQNPMHOU5TEV5TZ54CG6VSQI46XSEKWXQC
O5JVMDEEKP334BAYMJ6HHXROW4X4WC24JHCYZTKJRQE5UGYXV7YQC
7XCGFU3GX4TQXZBOU7GFAQ62EEOTVRNWFYQGI3XULFPSUKDZ2EYAC
/* For brevity's sake, struct members are annotated where they are used. */enum dwl_cursor_mode { DWL_CURSOR_PASSTHROUGH, DWL_CURSOR_MOVE, DWL_CURSOR_RESIZE,};
/* For brevity's sake, struct members are annotated where they are used. */
enum dwl_cursor_mode {
DWL_CURSOR_PASSTHROUGH,
DWL_CURSOR_MOVE,
DWL_CURSOR_RESIZE,
};
/* enums */enum { CurNormal, CurMove, CurResize }; /* cursor */
/* enums */
enum { CurNormal, CurMove, CurResize }; /* cursor */
enum dwl_cursor_mode cursor_mode;
unsigned int cursor_mode;
static void moveresize(struct dwl_view *view, enum dwl_cursor_mode mode,
static void moveresize(struct dwl_view *view, unsigned int mode,
server->cursor_mode = DWL_CURSOR_PASSTHROUGH;
server->cursor_mode = CurNormal;
if (server->cursor_mode == DWL_CURSOR_MOVE) {
if (server->cursor_mode == CurMove) {
} else if (server->cursor_mode == DWL_CURSOR_RESIZE) {
} else if (server->cursor_mode == CurResize) {
moveresize(view, DWL_CURSOR_MOVE, 0);
moveresize(view, CurMove, 0);
moveresize(struct dwl_view *view, enum dwl_cursor_mode mode, uint32_t edges)
moveresize(struct dwl_view *view, unsigned int mode, uint32_t edges)
if (mode == DWL_CURSOR_MOVE) {
if (mode == CurMove) {
moveresize(view, DWL_CURSOR_RESIZE, WLR_EDGE_BOTTOM|WLR_EDGE_RIGHT);
moveresize(view, CurResize, WLR_EDGE_BOTTOM|WLR_EDGE_RIGHT);
moveresize(view, DWL_CURSOR_RESIZE, event->edges);
moveresize(view, CurResize, event->edges);