static void proc_new_game(Widget w, XEvent *e, String *argv, Cardinal *argc)
{
+ Widget shell;
+
+ for (shell = w; !XtIsWMShell(shell);)
+ shell = XtParent(shell);
+
game_reset(&state.board);
x11_redraw_goal(&state);
x11_redraw_game(&state);
+ x11_redraw_icon(&state, shell);
}
static const XtActionsRec menu_actions[] = {
ui_initialize(&state, shell);
x11_initialize(&state, XtScreen(shell));
game_reset(&state.board);
+ state.use_ewmh_icons = ewmh_probe_wm_icon(shell);
XtRealizeWidget(shell);
+ x11_redraw_icon(&state, shell);
+
return app;
}