Now it works, stupid me: I did&#39;nt notice the &quot;n&quot; in the &quot;#ifndef&quot; condition, there was another putenv buried inside :(<br><br>Thanks everybody for helping.<br><br><div><span class="gmail_quote">2007/3/23, Eduardo Lima &lt;
<a href="mailto:eblima@gmail.com">eblima@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 3/23/07, Alessandro Pasotti &lt;
<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>&gt; wrote:<br>&gt;<br>[...]<br>&gt;<br>&gt; I tested also<br>&gt; putenv(&quot;SDL_VIDEO_X11_WMCLASS=tuxpaint&quot;);<br>&gt; after main()<br>&gt;<br><br>You should place the setenv/putenv call before sdl_init() call and add
<br>the StartupWMClass=tuxpaint entry in your .desktop file. As examples,<br>canola and carman are SDL applications which show the icons in the<br>task navigator.<br><br>Best Regards, Etrunko.<br><br>--<br>Eduardo de Barros Lima
<br>INdT - Instituto Nokia de Tecnologia<br><a href="mailto:eblima@gmail.com">eblima@gmail.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>Alessandro Pasotti<br>w3:&nbsp;&nbsp; <a href="http://www.itopen.it">www.itopen.it
</a>