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
+3
@@ -638,8 +638,11 @@ wm_window_open(Rng2F32 rect, WM_WindowFlags flags, String8 title)
}; };
Hints hints = {.flags = 2, .decorations = 0}; Hints hints = {.flags = 2, .decorations = 0};
Atom property = XInternAtom(lnx_wm_state->display, "_MOTIF_WM_HINTS", 1); Atom property = XInternAtom(lnx_wm_state->display, "_MOTIF_WM_HINTS", 1);
if(property != None)
{
XChangeProperty(lnx_wm_state->display, w->window, property, property, 32, PropModeReplace, (unsigned char *)&hints, 5); XChangeProperty(lnx_wm_state->display, w->window, property, property, 32, PropModeReplace, (unsigned char *)&hints, 5);
} }
}
//- rjf: convert to handle & return //- rjf: convert to handle & return
WM_Window handle = {(U64)w}; WM_Window handle = {(U64)w};