do not assume presence of _MOTIF_WM_HINTS

This commit is contained in:
Ryan Fleury committed 2026-08-26 15:21:36 -07:00
1 parent c1309e2948
commit 653cc98662
1 file changed
+4 -1
@@ -638,7 +638,10 @@ wm_window_open(Rng2F32 rect, WM_WindowFlags flags, String8 title)
};
Hints hints = {.flags = 2, .decorations = 0};
Atom property = XInternAtom(lnx_wm_state->display, "_MOTIF_WM_HINTS", 1);
XChangeProperty(lnx_wm_state->display, w->window, property, property, 32, PropModeReplace, (unsigned char *)&hints, 5);
if(property != None)
{
XChangeProperty(lnx_wm_state->display, w->window, property, property, 32, PropModeReplace, (unsigned char *)&hints, 5);
}
}
//- rjf: convert to handle & return