Recent

Author Topic: Fixing Lazarus 4.4 IDE layout  (Read 2190 times)

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 729
Re: Fixing Lazarus 4.4 IDE layout
« Reply #15 on: February 12, 2026, 04:44:50 am »
For what it's worth, my Ubuntu 24.04 thinks it's using the X11 windowing system (attached screen shot, but who knows?)  but the postage stamp sized Lazarus IDE startup persists (other screen shot).
A work-around that seems reliable is to create two desktops in the format you want in  (Tools > Desktops ), then switch between them each time you start the IDE.

dbannon

  • Hero Member
  • *****
  • Posts: 3726
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Fixing Lazarus 4.4 IDE layout
« Reply #16 on: February 12, 2026, 05:52:05 am »
Curt, might be worth trying ttomas's suggestion. The Wayland problem is about locating the new window in the correct place (it will not do so), generally, I think Wayland gets the size right. So, try undocked ?  If that fixes your issue, it might be worth a Lazarus bug report.

Next, try changing your Desktop. With the various DEs slowly (but too fast) switching to Wayland they exposing its many, many shortcoming but its not all the same. So, sounds like you like a slow, user unfriendly DE, (eg Gnome), maybe try KDE ?  Or if you want to be Wayland free, try Mate, it just works.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 729
Re: Fixing Lazarus 4.4 IDE layout
« Reply #17 on: February 12, 2026, 05:11:03 pm »
I watched a video about MATE this morning, and may give it a try once I have things a little more restored.   

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12194
  • Debugger - SynEdit - and more
    • wiki
Re: Fixing Lazarus 4.4 IDE layout
« Reply #18 on: March 02, 2026, 11:56:31 am »
Not sure if this has side effects....

But you may try
Code: Diff  [Select][+][-]
  1. diff --git a/lcl/interfaces/gtk2/gtk2wsforms.pp b/lcl/interfaces/gtk2/gtk2wsforms.pp
  2. index cd23a7b497..bc3ed8b97a 100644
  3. --- a/lcl/interfaces/gtk2/gtk2wsforms.pp
  4. +++ b/lcl/interfaces/gtk2/gtk2wsforms.pp
  5. @@ -493,6 +493,7 @@ begin
  6.    Allocation.Y := AParams.Y;
  7.    Allocation.Width := AParams.Width;
  8.    Allocation.Height := AParams.Height;
  9. +if AWinControl.Visible then
  10.    gtk_widget_size_allocate(P, @Allocation);
  11.  
  12.    {$IFDEF DebugLCLComponents}
  13.  


Or in  lcl/include/application.inc around line 2296 comment out the 2 lines below
Code: Pascal  [Select][+][-]
  1.        UpdateMainForm(AForm);
  2. //      if FMainForm = AForm then
  3. //         AForm.HandleNeeded;
  4.  

dbannon

  • Hero Member
  • *****
  • Posts: 3726
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Fixing Lazarus 4.4 IDE layout
« Reply #19 on: March 02, 2026, 12:11:21 pm »
I watched a video about MATE this morning, and may give it a try once I have things a little more restored.   

Curt, I use Mate with the "Plank" dock, I think Ubuntu install it by default or used to. Very easy to use, everything is obvious.

D
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zeljko

  • Hero Member
  • *****
  • Posts: 1875
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Fixing Lazarus 4.4 IDE layout
« Reply #20 on: March 02, 2026, 12:42:02 pm »
Try gtk3 trunk :)

 

TinyPortal © 2005-2018