Wow Xlib is uglier and it's documentation harder to find than I expected. (Actually I couldn't find any X11 Documentation regarding MOTIF_WM_HINTS)
The only working thing I could figure out is to get Alt+F4 beeing triggered a Close event. I couldn't find a way to get an Alt+F4 keyevent triggered in window mode.
My workaround was to use
if (style & Style::Close)
{
hints.Decorations |= 0;
hints.Functions |= MWM_FUNC_CLOSE;
}
if (style==0)
{
hints.Decorations |= 0;
hints.Functions |= MWM_FUNC_CLOSE;
}
instead of
if (style & Style::Close)
{
hints.Decorations |= 0;
hints.Functions |= MWM_FUNC_CLOSE;
}
Which is far to hacky for a pull request.
Sorry that I couldn't contribute more
greetings, Robert