Skip to content

Eclipse under Unity 11.04 not showing scrollbars

I’m currently trying the latest Ubuntu 11.04 with the new Unity desktop. While playing around I noticed that Eclipse Galileo (3.5.2) and I assume Helios, too, is not showing the scrollbars. After googling I found out that Eclipse is having problems with the new overlay scrollbars. Apparently there are various solutions to this problem:

  1. Disable overlay scrollbars in Unity:
    sudo su -c 'echo export LIBOVERLAY_SCROLLBAR=0 > etc/X11/Xsession.d/80overlayscrollbars

    This works but looks like crap because it affects the whole system.

  2. Disable overlay scrollbars for eclipse only. This applies to the Ubuntu repository version of Eclipse which is started by a shell script found under /usr/bin/eclipse
    These lines are added below the line: 

    GDK_NATIVE_WINDOWS=true export
    # work around for LP #769277
    # end work around

    I prefer the latter. The original posting mentioning this workaround can be found here.


  1. Dik Allison

    Thanks for the tip – rolling the mouse wheel over several thousand lines was a REAL pain.

    Tip worked fine with no fuss and without messing up other programs.

    Where would we be without that nice Mr Google!

  2. A. Banani

    Glad I could help 🙂

  3. Óli G

    Thanks a lot for the tip – this was bothering me quite a bit 🙂

    I used option number 2 but the line it was supposed to append looked a bit different than above (if anyone else wonders about that):

    export GDK_NATIVE_WINDOWS=true

    (Ubuntu 11.10 with Gnome Shell 3.2 and Eclipse 3.7.0)

  4. will

    Thanks the second way was what I was looking for…

  5. trent


    The second option worked perfect for me using
    (Ubuntu 11.10 with Gnome Shell 3.2 and Eclipse 3.7.0)

Leave a Reply

Your email address will not be published.