aboutsummaryrefslogtreecommitdiff
path: root/rootston/xcursor.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-11 10:11:31 -0500
committerGitHub <noreply@github.com>2017-11-11 10:11:31 -0500
commita538ef33c1f27d5180117933bee40ecd93fbea7a (patch)
treebe639c73a782ecfd680dabc31d3a4e4208cba61f /rootston/xcursor.c
parent78ed7f3c8983191b0b6399d4c66f5524a23f216a (diff)
parent2a9dc60f28616211370fcd48de8c75ef17282d2e (diff)
Merge pull request #384 from acrisci/feature/multiseat
multiseat
Diffstat (limited to 'rootston/xcursor.c')
-rw-r--r--rootston/xcursor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/rootston/xcursor.c b/rootston/xcursor.c
index 43cbfc51..8697cdc3 100644
--- a/rootston/xcursor.c
+++ b/rootston/xcursor.c
@@ -1,14 +1,6 @@
#include <wlr/types/wlr_cursor.h>
#include "rootston/input.h"
-struct wlr_xcursor *get_default_xcursor(struct wlr_xcursor_theme *theme) {
- return wlr_xcursor_theme_get_cursor(theme, "left_ptr");
-}
-
-struct wlr_xcursor *get_move_xcursor(struct wlr_xcursor_theme *theme) {
- return wlr_xcursor_theme_get_cursor(theme, "grabbing");
-}
-
static const char *get_resize_xcursor_name(uint32_t edges) {
if (edges & ROOTS_CURSOR_RESIZE_EDGE_TOP) {
if (edges & ROOTS_CURSOR_RESIZE_EDGE_RIGHT) {
@@ -32,6 +24,14 @@ static const char *get_resize_xcursor_name(uint32_t edges) {
return "se-resize"; // fallback
}
+struct wlr_xcursor *get_default_xcursor(struct wlr_xcursor_theme *theme) {
+ return wlr_xcursor_theme_get_cursor(theme, "left_ptr");
+}
+
+struct wlr_xcursor *get_move_xcursor(struct wlr_xcursor_theme *theme) {
+ return wlr_xcursor_theme_get_cursor(theme, "grabbing");
+}
+
struct wlr_xcursor *get_resize_xcursor(struct wlr_xcursor_theme *theme,
uint32_t edges) {
return wlr_xcursor_theme_get_cursor(theme, get_resize_xcursor_name(edges));