From 83071fff3f09a3c2ff45061f6082d5d77d074073 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 31 Oct 2024 20:20:09 -0400 Subject: [PATCH] document/tidy the new set/get functions Signed-off-by: Thomas E. Dickey --- include/X11/Xcursor/Xcursor.h.in | 2 +- man/Xcursor.man | 14 ++++++++++++++ src/display.c | 3 +-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/X11/Xcursor/Xcursor.h.in b/include/X11/Xcursor/Xcursor.h.in index 075194e..a499957 100644 --- a/include/X11/Xcursor/Xcursor.h.in +++ b/include/X11/Xcursor/Xcursor.h.in @@ -487,7 +487,7 @@ XcursorGetDefaultSize (Display *dpy); XcursorBool XcursorSetResizable (Display *dpy, XcursorBool flag); -int +XcursorBool XcursorGetResizable (Display *dpy); XcursorBool diff --git a/man/Xcursor.man b/man/Xcursor.man index 2492476..cf3ba84 100644 --- a/man/Xcursor.man +++ b/man/Xcursor.man @@ -760,6 +760,20 @@ int XcursorGetDefaultSize ( Gets the default cursor size. . .PS +XcursorBool XcursorSetResizable ( + Display *\fIdpy\fP, + XcursorBool \fIresizable\fP) +.PE +Sets the current resizable-cursors state. +. +.PS +XcursorBool XcursorGetResizable ( + Display *\fIdpy\fP) +.PE +Gets the current resizable-cursors state. +. +. +.PS XcursorBool XcursorSetTheme ( Display *\fIdpy\fP, const char *\fItheme\fP) diff --git a/src/display.c b/src/display.c index e94efaf..d1d8ad3 100644 --- a/src/display.c +++ b/src/display.c @@ -347,7 +347,7 @@ XcursorSetResizable (Display *dpy, XcursorBool flag) return XcursorTrue; } -int +XcursorBool XcursorGetResizable (Display *dpy) { XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy); @@ -401,7 +401,6 @@ XcursorGetThemeCore (Display *dpy) if (!info) return XcursorFalse; return info->theme_core; - } XcursorBool