rnd-20001203-5-src
[rocksndiamonds.git] / src / libgame / x11.c
index 4ac4f4fd3b80bdf99662fa7f1a550ed85e6e0a5e..931e9d5c5a62e6aba813fbe764b9661c2010a646 100644 (file)
@@ -12,7 +12,9 @@
 *  x11.c                                                   *
 ***********************************************************/
 
-#include "libgame.h"
+#include "system.h"
+#include "misc.h"
+
 
 #if defined(TARGET_X11)
 
@@ -185,7 +187,7 @@ static DrawWindow X11InitWindow()
   wm_hints.icon_mask = iconmask_pixmap;
   wm_hints.flags = StateHint | IconPixmapHint | IconMaskHint | InputHint;
 
-  class_hints.res_name = program.command_name;
+  class_hints.res_name = program.command_basename;
   class_hints.res_class = program.program_title;
 
   XSetWMProperties(display, new_window->drawable, &windowName, &iconName,