Index: ja2-0.12.1r6466/sgp/SGP.cc
===================================================================
--- ja2-0.12.1r6466.orig/sgp/SGP.cc	2009-07-23 10:32:57.000000000 +0100
+++ ja2-0.12.1r6466/sgp/SGP.cc	2009-07-24 09:35:00.000000000 +0100
@@ -121,6 +121,9 @@
 	// now required by all (even JA2) in order to call ShutdownSGP
 	atexit(SGPExit);
 
+#ifdef WITH_MAEMO
+	putenv("SDL_VIDEO_X11_WMCLASS=ja2");
+#endif
 	SDL_Init(SDL_INIT_VIDEO);
 	SDL_EnableUNICODE(SDL_ENABLE);
 
