things which came out my laptop

Mouse Clicks in Eclipse Does Not Work After Karmic Upgrade

After upgrade to Ubuntu Karmic, mouse clicks stopped in eclipse, my favourite IDE, mainly for submit buttons. Until today I used keyboard as alternative, but it was bit frustrating.

This issue raised because karmic brings version 2.18 of GTK+ to the desktop. GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, the GTK+ is suitable for projects ranging from small one-off tools to complete application suites.

Eclipse assume that they can just operate on the X windows corresponding to their GDK windows without ever telling GDK, which causes some widgets to exhibit weird behaviour. Bug 287307 was filed with the Eclipse foundation and this is fixed for the upcoming 3.6 release.

Fortunately, the GTK+ people provide a switch to turn off the client side windows. So to work around the bug with Eclipse pre-3.6, just make sure you set environment variable GDK_NATIVE_WINDOWS=1
I created simple eclipse launcher script which will set this variable.


and added it to /usr/bin.

Happy coding!!!


Thanks Sachin!!!
I have been puzzling over this for a long time!!! With your help, this finally worked!!!
Thank you again!
Thanks a lot. Made my day.

Worked for me too.