[Lazarus] IDE window positions

zeljko zeljko at holobit.net
Sat Feb 2 15:00:29 CET 2013


On Saturday 02 of February 2013 13:20:05 Ludo Brands wrote:
> On 02/02/2013 12:36 PM, zeljko wrote:
> > hm...do you use compositing manager ? If yes, can you disable it and then
> > make an trial to see if positions are ok ?
> 
> KWin with the XRender compositing backend. Default for kubuntu. When
> disabling desktop effects the problem is gone.

yes, because without xrender num of size/move events is dramatically reduced 
and some workarounds in GDK_CONFIGURE doesn't trigger.

> The problem seems also timing related. When lazarus build with
> -dVerboseIDEDocking -dCHECK_POSITION, lazarus was showing the windows in
> the correct position at the 2nd restart. Without it, 3 sometimes 4
> restarts were needed. When build with -dVerboseIDEDocking
> -dCHECK_POSITION -dVerboseAllAutoSize which produces many more debug
> lines, lazarus started up correctly the first time. The wrong WMSize
> messages reported earlier weren't in the longer log.
> 
> > There's one big problem with gtk2 and compositing manager and geometry
> > (resize) changes. Without compositing resize events of form are passed
> > correctly (as gtk2 docs says), but with compositing manager you have x5
> > resize events and it's very hard to get out which one is correct.
> 
> This doesn't really explain why a second or third run of the application
> fixes the issue.

No, but we know root of problems for now.
Gtk2WSForms.pp, line 168, GDK_CONFIGURE. I've maded that patch to fix problems 
with composite manager , so maybe something can be extended there (or checked 
if X and Y are valid at all). Try to disable that check and see what happens.
See this (read notes too): http://bugs.freepascal.org/view.php?id=17523

zeljko




More information about the Lazarus mailing list