X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/blobdiff_plain/da31028b3c2dfdb4d203fd9481568fe01d16926e..5a4a23e5e8032dfa1f7b73facb32f0c9ab200765:/src/motif.c diff --git a/src/motif.c b/src/motif.c index ef06c52..891fe47 100644 --- a/src/motif.c +++ b/src/motif.c @@ -26,6 +26,7 @@ #include "help.h" #include "motif.h" +#include "ewmhicon.h" #include "motifopt.h" #include "game.h" #include "version.h" @@ -232,9 +233,8 @@ static void proc_new_game(Widget w, XEvent *e, String *argv, Cardinal *argc) { game_reset(&state.board); - x11_redraw_goal(&state, -1); + x11_redraw_goal(&state, -1, get_shell(w)); x11_redraw_game(&state, -1); - x11_redraw_icon(&state, get_shell(w)); if (!state.timer_tick) { XtAppContext app = XtWidgetToApplicationContext(w); @@ -281,7 +281,7 @@ static XtAppContext app_initialize(int argc, char **argv) state.use_ewmh_icons = ewmh_probe_wm_icon(shell); XtRealizeWidget(shell); - x11_redraw_icon(&state, shell); + x11_redraw_goal(&state, 0, shell); return app; }