aboutsummaryrefslogtreecommitdiff
path: root/rootston/xcursor.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-11 16:14:03 +0100
committeremersion <contact@emersion.fr>2017-12-11 16:14:03 +0100
commitc67a5824b8831b50e9f3b09cc182f496fb973321 (patch)
tree0a4f6090819e680bcd611388c8cbe867fbb4983a /rootston/xcursor.c
parent6001235b0465ba1961f8abd66a860bcf1f14fc22 (diff)
parent808ab5aa1bd990776ae30d5f9bb171ca7b42d6ef (diff)
Merge branch 'master' into display-destroy
Diffstat (limited to 'rootston/xcursor.c')
-rw-r--r--rootston/xcursor.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/rootston/xcursor.c b/rootston/xcursor.c
deleted file mode 100644
index 74e732c9..00000000
--- a/rootston/xcursor.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#define _POSIX_C_SOURCE 200809L
-#include <stdlib.h>
-#include <string.h>
-#include "rootston/xcursor.h"
-#include "rootston/input.h"
-
-const char *roots_xcursor_get_resize_name(uint32_t edges) {
- if (edges & ROOTS_CURSOR_RESIZE_EDGE_TOP) {
- if (edges & ROOTS_CURSOR_RESIZE_EDGE_RIGHT) {
- return "ne-resize";
- } else if (edges & ROOTS_CURSOR_RESIZE_EDGE_LEFT) {
- return "nw-resize";
- }
- return "n-resize";
- } else if (edges & ROOTS_CURSOR_RESIZE_EDGE_BOTTOM) {
- if (edges & ROOTS_CURSOR_RESIZE_EDGE_RIGHT) {
- return "se-resize";
- } else if (edges & ROOTS_CURSOR_RESIZE_EDGE_LEFT) {
- return "sw-resize";
- }
- return "s-resize";
- } else if (edges & ROOTS_CURSOR_RESIZE_EDGE_RIGHT) {
- return "e-resize";
- } else if (edges & ROOTS_CURSOR_RESIZE_EDGE_LEFT) {
- return "w-resize";
- }
- return "se-resize"; // fallback
-}