Recent

Author Topic: Lazarus Main and Gnome/Wayland  (Read 1437 times)

Jonax

  • Jr. Member
  • **
  • Posts: 55
    • Jonax stuff
Re: Lazarus Main and Gnome/Wayland
« Reply #30 on: June 09, 2026, 07:49:47 pm »
Update:

Adjusting the panels' sizes in Gnome was not totally satsisfactory. This was the best I could do. It behaves better on KDE. Also Gnome in VM on my intel N200 is pretty sluggish. Not a very pleasing experience on my system. Apart from not begin used to Gnome.

As for error reports? I don't want to hijack the thread but there is one issue.

The output from screen.pixelsperinch seems stuck on 96 even if I use that high resolution setting in the Linux system. For example in 125% I still get 96 instead of expected 120.

What is the value of DesignTimePPI of your designed TForm ? Unlikely, but gtk3 can work with GDK_SCALE=2 and dpi 96 (depends on your setup), so you'll see scaled everything even with 96 dpi.

Zeljko: It seems the DesignTimePPI is 96. I have not tried adjusting the GDK_SCALE. Also I don't use highDPI monitors myself but I got aware of the situation when a friend with a fancy monitor tried one of my programs on such a setting and it looked horrible. Since then I started using the pixelsperinch to catch the highDPI users and compensate for those settings. It seemed to work reasonably during the Debian Bookworm Lazarus GTK2 days. But now we are entering a new era..

zeljko

  • Hero Member
  • *****
  • Posts: 1987
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Main and Gnome/Wayland
« Reply #31 on: June 09, 2026, 08:42:39 pm »
Without any example or code I cannot help you. gtk3 works here on normal monitors and HiDpi monitors without problem (x11 and wayland).

Jonax

  • Jr. Member
  • **
  • Posts: 55
    • Jonax stuff
Re: Lazarus Main and Gnome/Wayland
« Reply #32 on: June 09, 2026, 09:02:10 pm »
Without any example or code I cannot help you. gtk3 works here on normal monitors and HiDpi monitors without problem (x11 and wayland).

I'll see if I can dig up some example, but probably not in the near future. Meanwhile, thanks for all your work on the GTK3. Much appreciated.  :)


 

TinyPortal © 2005-2018