freebsd-ports/x11-wm/twm/files/patch-src_add__window.c
Adriaan de Groot 21ae0f9d9f x11-wm/twm: better attribute patches for WM Hints
This affects only the comment / header in the patches, nothing
in the patches or the twm package.

Reported by:	"Matthew D. Fuller" <fullermd@over-yonder.net>
2021-05-10 00:51:17 +02:00

15 lines
577 B
C

This is a cut-down version of https://bazaar.launchpad.net/~ctwm/ctwm/trunk/revision/558
which passed through vtwm and Reddit before arriving in FreeBSD ports.
--- src/add_window.c.orig 2020-06-14 23:58:19 UTC
+++ src/add_window.c
@@ -238,6 +238,9 @@ AddWindow(Window w, int iconm, IconMgr *iconp)
tmp_win->wmhints = XGetWMHints(dpy, tmp_win->w);
+ if (!tmp_win->wmhints) {
+ tmp_win->wmhints = gen_synthetic_wmhints(tmp_win);
+ }
if (tmp_win->wmhints) {
if (restore_iconified) {
tmp_win->wmhints->initial_state = IconicState;