Maybe a nouveau problem? I'm having this issue on a clean and recent Debian Testing installation, in any programs (medit, midori, chromium, leafpad, etx).
$ lspci | grep -i vga 01:00.0 VGA compatible controller: NVIDIA Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev a2) Driver: Nouveau