[PATCH] wmaker: add check in getSize function to prevent X error
1 view
Skip to first unread message
david.m...@gmail.com
unread,
Feb 21, 2026, 2:57:42 PM (3 days ago) Feb 21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Window Maker Development
This patch is checking if the passed Drawable exists before calling XGetGeometry on it, as seen when using Steam and trying to change the attributes of the 'Friends & Chat' popup window, wmaker is generating such error in the logs: warning: internal X error: BadDrawable (invalid Pixmap or Window parameter) Request code: 14 X_GetGeometry Request minor code: 0 Resource ID: 0x0 Error serial: 32091 --- src/icon.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
/* We need the application size to center it * and show in the correct position */ -getSize(icon->icon_win, &w, &h, &d); +if (!getSize(icon->icon_win, &w, &h, &d)) { +wwarning("Drawable invalid, skip reparenting dock app to icon."); +return; +}
/* Set the background pixmap */ XSetWindowBackgroundPixmap(dpy, icon->core->window, scr->icon_tile_pixmap); -- 2.43.0