Well, i finally found the problem...
Actually i'm using Fedora 7 with Compiz-Fusion (a 3D desktop environment) and this works in the XGL session mode.
But actually Lazarus seems not to support that mode, so i use a trick to make it work:
launching Lazarus on another display.
Here is a script i put in the /usr/bin path:
#!/bin/sh
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ $# -eq 0 ] ; then
echo "Usage : noxgl <program> [options]"
echo " noxgl -b <program> [options]"
echo " (-b option means 'border' so it adds a window border)"
exit
fi
if [ "$1" = "-b" ]; then
if [ -x /usr/bin/kwin ]; then
WM=kwin
else
WM=metacity
fi
DISPLAY=:0.0
$WM&
shift
$@
killall $WM
else
DISPLAY=:0.0 "$@"
fi
i named this scrip "noxgl" so if i want to launch an app without XGL i just type for example:
noxgl -b startlazarus
it works for all the apps
Thanks to Nicofo for his help