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.
This commit is contained in:
Levi Neely 2026-05-13 10:32:47 +02:00
parent 759225007c
commit d87a7f9941
1 changed files with 1 additions and 1 deletions

View File

@ -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);