aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2022-05-27 00:30:12 +0100
committerDavid Robillard <d@drobilla.net>2022-12-24 19:47:25 -0500
commitcdfb8223301faba2c478c805b35ca457e6547629 (patch)
treef024df90192e74ff11f1e9eeb766825758f9f691 /src/x11.c
parentebf23245ce3dff82d804c957ad928fe11457311f (diff)
downloadpugl-cdfb8223301faba2c478c805b35ca457e6547629.tar.gz
pugl-cdfb8223301faba2c478c805b35ca457e6547629.tar.bz2
pugl-cdfb8223301faba2c478c805b35ca457e6547629.zip
Add diagonal cursors
Diffstat (limited to 'src/x11.c')
-rw-r--r--src/x11.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/x11.c b/src/x11.c
index b6b6695..ac4950d 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -66,7 +66,7 @@ enum WmClientStateMessageAction {
WM_STATE_TOGGLE
};
-#define NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_DOWN + 1U)
+#define NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_RIGHT_DOWN_LEFT + 1U)
#ifdef HAVE_XCURSOR
static const char* const cursor_names[NUM_CURSORS] = {
@@ -76,7 +76,9 @@ static const char* const cursor_names[NUM_CURSORS] = {
"pointer", // HAND
"not-allowed", // NO
"sb_h_double_arrow", // LEFT_RIGHT
- "sb_v_double_arrow" // UP_DOWN
+ "sb_v_double_arrow", // UP_DOWN
+ "size_fdiag", // UP_LEFT_DOWN_RIGHT
+ "size_bdiag", // UP_RIGHT_DOWN_LEFT
};
#endif