devdraw: allow resize in xattach

The created window in xattach is missing the StructureNotifyMask,
if the WM does resize the window before mapping (like tiling WMs
do), the client will not get notified (and XGetWindowAttributes
in the same function will not get updated values)

Reproducible by starting acme in e.g. dwm.
This commit is contained in:
user
2026-02-05 17:35:43 +01:00
committed by Dan Cross
parent b3741e6ce3
commit a39606e324

View File

@@ -633,6 +633,7 @@ xattach(Client *client, char *label, char *winsize)
CWBackPixel|CWBorderPixel|CWColormap, CWBackPixel|CWBorderPixel|CWColormap,
&attr /* attributes (the above aren't?!) */ &attr /* attributes (the above aren't?!) */
); );
XSelectInput(_x.display, w->drawable, StructureNotifyMask | PropertyChangeMask);
/* /*
* Label and other properties required by ICCCCM. * Label and other properties required by ICCCCM.