From: Danny Milosavljevic Date: Thu, 2 Apr 2022 12:10:00 +0200 Subject: Make xterm use libxcursor directly Fixes . This patch makes xterm use libxcursor directly. Without it, libx11 would try to dlopen("libXcursor.so.1") and fail. --- xterm-370/misc.c.orig 2022-04-02 11:52:26.225131854 +0200 +++ xterm-370/misc.c 2022-04-02 12:06:13.091482385 +0200 @@ -79,6 +79,9 @@ #ifdef HAVE_LIBXPM #include #endif +#ifdef HAVE_LIB_XCURSOR +#include +#endif #ifdef HAVE_LANGINFO_CODESET #include @@ -866,7 +869,14 @@ * 0, 2 a shape, 3 a mask for 2, etc. * contains defined names for each shape. */ - c = XCreateGlyphCursor(dpy, + c = XcursorTryShapeCursor(dpy, + myFont.fs->fid, /* source_font */ + myFont.fs->fid, /* mask_font */ + c_index + 0, /* source_char */ + c_index + 1, /* mask_char */ + &foreground, + &background); + if (c == None) c = XCreateGlyphCursor(dpy, myFont.fs->fid, /* source_font */ myFont.fs->fid, /* mask_font */ c_index + 0, /* source_char */ guix/diff/gnu/packages/enlightenment.scm'>diff
AgeCommit message (Expand)Author
2024-08-11gnu: Replace (almost) all uses of /run/setuid-programs....…those good for master, anyway. * gnu/packages/admin.scm (ktsuss, opendoas, hosts) [arguments]: Replace /run/setuid-programs with /run/privileged/bin. * gnu/packages/containers.scm (slirp4netns)[arguments]: Likewise. * gnu/packages/debian.scm (pbuilder)[arguments]: Likewise. * gnu/packages/disk.scm (udevil)[arguments]: Likewise. * gnu/packages/enlightenment.scm (efl, enlightenment) [arguments]: Likewise. * gnu/packages/gnome.scm (gdm, gnome-control-center) [arguments]: Likewise. * gnu/packages/linux.scm (singularity)[arguments]: Likewise. * gnu/packages/lxde.scm (spacefm)[arguments]: Likewise. * gnu/packages/monitoring.scm (zabbix-agentd)[arguments]: Likewise. * gnu/packages/virtualization.scm (ganeti)[arguments]: Likewise. * gnu/packages/xdisorg.scm (xsecurelock)[arguments]: Likewise. * gnu/services/dbus.scm (dbus-configuration-directory): Likewise. * gnu/services/ganeti.scm (%default-ganeti-environment-variables): Likewise. * gnu/services/monitoring.scm (zabbix-agent-shepherd-service): Likewise. * gnu/tests/ldap.scm (marionette): Likewise. * gnu/tests/monitoring.scm (os): Likewise. Tobias Geerinckx-Rice