diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/sxwm.c | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -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 @@ -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)); |