From 231fcfe100d358d9030a7a2f21d3ffe53b64d1ea Mon Sep 17 00:00:00 2001 From: uint23 Date: Tue, 29 Apr 2025 20:46:38 +0100 Subject: using XCursor instead - nnyyxxxx --- Makefile | 2 +- src/sxwm.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8dfeea8..7c69201 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC ?= gcc CFLAGS ?= -std=c99 -Wall -Wextra -O3 -Isrc -LDFLAGS ?= -lX11 -lXinerama +LDFLAGS ?= -lX11 -lXinerama -lXcursor PREFIX ?= /usr/local BIN := sxwm 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 #include +#include #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)); -- cgit v1.2.3