[Lazarus] gtk2 liboverlay Ubuntu Unity

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jun 26 14:00:52 CEST 2012


Hi all,

The Ubuntu's Unity LIBOVERLAY override breaks the gtk_grab_add function, so
mouse capturing does not work in synedit, treeview and many more LCL controls
that descend from TCustomControl. That means dragging or selecting text with the
mouse does not work.
This is true for many applications, which is why liboverlay has an internal list
to disable itself for many famous applications (e.g. gimp).
Maybe with some more time someone can find a remedy for the LCL.


The LCL will write a warning with 'debugln' if it spots liboverlay.



To disable liboverlay for a single application set the environment variable
LIBOVERLAY_SCROLLBAR to '0' *before* starting the application. There is no way
to disable liboverlay when the application is already running. For example:

LIBOVERLAY_SCROLLBAR=0 ./lazarus


You can disable it on a whole machine by uninstalling the package
"liboverlay-scrollbar-0.2-0".

The IDE starter "startlazarus" now sets this variable before starting the IDE.
startlazarus is called for example when you use the desktop menu item.


Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120626/2a16b656/attachment-0002.html>


More information about the Lazarus mailing list