summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruint23 <[email protected]>2025-04-29 20:46:38 +0100
committeruint23 <[email protected]>2025-04-29 20:46:38 +0100
commit231fcfe100d358d9030a7a2f21d3ffe53b64d1ea (patch)
tree3cb8dfffae57e5db0501fed585fe6de443926e77 /src
parent6493a8f575925cd67f09b8a08c37927bcdc59af1 (diff)
using XCursor instead - nnyyxxxx
Diffstat (limited to 'src')
-rw-r--r--src/sxwm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index d1aaed3..32182b4 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -28,6 +28,7 @@
#include <X11/Xutil.h>
#include <X11/extensions/Xinerama.h>
+#include <X11/Xcursor/Xcursor.h>
#include "defs.h"
#include "parser.h"
@@ -1075,9 +1076,9 @@ void setup(void)
}
grab_keys();
- c_normal = XCreateFontCursor(dpy, XC_left_ptr);
- c_move = XCreateFontCursor(dpy, XC_fleur);
- c_resize = XCreateFontCursor(dpy, XC_bottom_right_corner);
+ c_normal = XcursorLibraryLoadCursor(dpy, "left_ptr");
+ c_move = XcursorLibraryLoadCursor(dpy, "fleur");
+ c_resize = XcursorLibraryLoadCursor(dpy, "bottom_right_corner");
XDefineCursor(dpy, root, c_normal);
scr_width = XDisplayWidth(dpy, DefaultScreen(dpy));