From a39606e3241540482afd13e93d7f34defa7d74ce Mon Sep 17 00:00:00 2001 From: user Date: Thu, 5 Feb 2026 17:35:43 +0100 Subject: 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. --- src/cmd/devdraw/x11-screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/devdraw/x11-screen.c b/src/cmd/devdraw/x11-screen.c index 8a776c0a..7fa86ddf 100644 --- a/src/cmd/devdraw/x11-screen.c +++ b/src/cmd/devdraw/x11-screen.c @@ -633,6 +633,7 @@ xattach(Client *client, char *label, char *winsize) CWBackPixel|CWBorderPixel|CWColormap, &attr /* attributes (the above aren't?!) */ ); + XSelectInput(_x.display, w->drawable, StructureNotifyMask | PropertyChangeMask); /* * Label and other properties required by ICCCCM. -- cgit v1.2.3