From d87a7f99419fc595d073a0c752dd2dd11cf1839a Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Wed, 13 May 2026 10:32:47 +0200 Subject: [PATCH] Fix FREE_PIXMAP macro to use vtable instead of direct XFreePixmap Replace XFreePixmap(dpy, p) in the FREE_PIXMAP macro with wm_backend->pixmap_free((unsigned long)p). This eliminates a hidden dpy dependency from every file that uses FREE_PIXMAP. --- src/texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/texture.h b/src/texture.h index 193c261..09b5868 100644 --- a/src/texture.h +++ b/src/texture.h @@ -175,7 +175,7 @@ void wTexturePaintTitlebar(struct WWindow *wwin, WTexture *texture, Pixmap *tdat int repaint); -#define FREE_PIXMAP(p) if ((p)!=None) XFreePixmap(dpy, (p)), (p)=None +#define FREE_PIXMAP(p) if ((p)!=None) wm_backend->pixmap_free((unsigned long)(p)), (p)=None void wDrawBevel(Drawable d, unsigned width, unsigned height, WTexSolid *texture, int relief);