diff options
| author | user <user@my.domain> | 2026-02-05 17:35:43 +0100 |
|---|---|---|
| committer | Dan Cross <crossd@gmail.com> | 2026-02-05 13:26:53 -0500 |
| commit | a39606e3241540482afd13e93d7f34defa7d74ce (patch) | |
| tree | 29001fb1f05acfaa363743d2e4a956c3d1f10a5e | |
| parent | b3741e6ce39cdcdb09485c088034b723ed023b0b (diff) | |
| download | plan9port-a39606e3241540482afd13e93d7f34defa7d74ce.tar.gz plan9port-a39606e3241540482afd13e93d7f34defa7d74ce.zip | |
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.
| -rw-r--r-- | src/cmd/devdraw/x11-screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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. |
