aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-21 16:05:28 -0400
committerDavid Robillard <d@drobilla.net>2022-05-21 16:24:53 -0400
commitc6238d974edbb5ce41f99d8457fe7ce09dd26abf (patch)
tree48f19e2a9f3b91a65f10f7d52a84a281e1c0b441 /src/x11.h
parent2b6dd4c37f40496741cf69fe315f47b3032b16fa (diff)
downloadpugl-c6238d974edbb5ce41f99d8457fe7ce09dd26abf.tar.gz
pugl-c6238d974edbb5ce41f99d8457fe7ce09dd26abf.tar.bz2
pugl-c6238d974edbb5ce41f99d8457fe7ce09dd26abf.zip
X11: Use cursor themes
This changes to getting cursors by name from the cursor theme, which makes the cursor match the ones used in modern desktop environments. As far as I can tell, there is no real standard for names, these ones seem to work for me in GNOME, KDE, and Xfce. I am not sure about the compatibility concerns here, but X11 without Xcursor themes strikes me as either too esoteric or too ancient to worry about, especially since cursor switching isn't critical functionality anyway.
Diffstat (limited to 'src/x11.h')
-rw-r--r--src/x11.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/x11.h b/src/x11.h
index f85b227..720dbeb 100644
--- a/src/x11.h
+++ b/src/x11.h
@@ -56,9 +56,7 @@ struct PuglInternalsImpl {
PuglEvent pendingConfigure;
PuglEvent pendingExpose;
int screen;
-#ifdef HAVE_XCURSOR
- unsigned cursorShape;
-#endif
+ const char* cursorName;
};
PUGL_WARN_UNUSED_RESULT