Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread John Landmesser via lazarus

Am 02.01.24 um 22:58 schrieb Kostas Michalopoulos via lazarus:

On 1/2/24 17:46, John Landmesser via lazarus wrote:

I had issues with the Lazarus IDE itself: instead of a form it showed a
fullscreen white window and at next lazarus boot asked me if to open
this broken project again or begin a new project.


Hm, perhaps it was some botched configuration? Out of curiosity i
downloaded and tried "Nobara 39 Official" (latest version from their
site, it uses KDE), installed FPC from the repository and Lazarus from
git (trunk) and it worked fine (wonky theme aside):

https://i.imgur.com/S1gld6B.png

I did try it in a VM though (and everything was very sluggish), but
this shouldn't affect anything related to Wayland. Also i didn't try
the Gnome-based version, was the one you tried Gnome or KDE?

Kostas


I had KDE only that worked ok but the IDE of lazarus had issues as i told .

I deleted Nobara and so the issues with Lazarus are also deleted :-)

As a sidenote ... i often read NoBra instead of Nobara and thats my own
issue :-)


Good night!

JohnML

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread Kostas Michalopoulos via lazarus

On 1/2/24 17:46, John Landmesser via lazarus wrote:

I had issues with the Lazarus IDE itself: instead of a form it showed a
fullscreen white window and at next lazarus boot asked me if to open
this broken project again or begin a new project.


Hm, perhaps it was some botched configuration? Out of curiosity i 
downloaded and tried "Nobara 39 Official" (latest version from their 
site, it uses KDE), installed FPC from the repository and Lazarus from 
git (trunk) and it worked fine (wonky theme aside):


https://i.imgur.com/S1gld6B.png

I did try it in a VM though (and everything was very sluggish), but this 
shouldn't affect anything related to Wayland. Also i didn't try the 
Gnome-based version, was the one you tried Gnome or KDE?


Kostas

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread John Landmesser via lazarus

Am 02.01.24 um 16:40 schrieb Kostas Michalopoulos via lazarus:

On 12/31/23 15:35, John Landmesser via lazarus wrote:

Just trying lazarus on new distribution nobara ( Fedora clone ) with
wayland, but it seems that the IDE sometimes get in trouble with this
display manager wayland. Changed back to x11 that is much better.


What are the issues you face? Sadly it seems the Gtk2 LCL widgetset
does some weird stuff on its own and it sometimes has issues even with
X11 window managers.

Kostas



I had issues with the Lazarus IDE itself: instead of a form it showed a
fullscreen white window and at next lazarus boot asked me if to open
this broken project again or begin a new project.

I don't look any further on this issue: removed that distribution and
use my working Manjaro with X11 :-)

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread Kostas Michalopoulos via lazarus

On 12/31/23 15:35, John Landmesser via lazarus wrote:

Just trying lazarus on new distribution nobara ( Fedora clone ) with
wayland, but it seems that the IDE sometimes get in trouble with this
display manager wayland. Changed back to x11 that is much better.


What are the issues you face? Sadly it seems the Gtk2 LCL widgetset does 
some weird stuff on its own and it sometimes has issues even with X11 
window managers.


Kostas

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread Kostas Michalopoulos via lazarus

On 1/1/24 09:47, Juha Manninen via lazarus wrote:
I don't think GTK2 should be used with Wayland. GTK2 was made before 
Wayland existed.


Gtk2 works fine with Wayland using XWayland (basically a rootless Xorg 
that uses Wayland to manage windows) which pretty much all desktop 
environments ship and support (and AFAIK there are no plans in the 
foreseeable future for XWayland to be dropped). In fact when i tried a 
Gtk2 program under KDE Wayland on a small laptop even scaling worked as 
expected (KDE allows X11 programs to handle scaling themselves instead 
of having the compositor scale the windows as a bitmap).


There is some functionality that is not supported because Wayland itself 
doesn't support it - e.g., IIRC you can't change the cursor's position 
and i think trying to grab a screenshot gives you a black image - but 
that'd affect toolkits that use Wayland directly too.



Do distros that use Wayland by default still include GTK2 applications?
The stable version of GIMP is still using Gtk2 and i think this is 
included by distros that use Wayland by default.


Kostas

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2024-01-01 Thread Michael Van Canneyt via lazarus



On Mon, 1 Jan 2024, Juha Manninen via lazarus wrote:


On Sun, Dec 31, 2023 at 3:36 PM John Landmesser via lazarus <
lazarus@lists.lazarus-ide.org> wrote:


Is that still true ... ?
Wayland in general has strange issues?!



As LCL binds to widgetsets like QT5 and GTK3, it should depend on those
widgetsets only.
Lazarus IDE also uses LCL and its underlying widgetsets.
I guess other QT5 and GTK3 apps work, thus the problem is in LCL binding
code.
They should be studied and fixed case by case.

I don't think GTK2 should be used with Wayland. GTK2 was made before
Wayland existed.
Do distros that use Wayland by default still include GTK2 applications?


Yes.  They work through the waylaynd X11 client.

The X11 client is needed since there are way(!) too much apps that require X
and which cannot be ported to wayland without major rewrites..

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2023-12-31 Thread Juha Manninen via lazarus
On Sun, Dec 31, 2023 at 3:36 PM John Landmesser via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Is that still true ... ?
> Wayland in general has strange issues?!
>

As LCL binds to widgetsets like QT5 and GTK3, it should depend on those
widgetsets only.
Lazarus IDE also uses LCL and its underlying widgetsets.
I guess other QT5 and GTK3 apps work, thus the problem is in LCL binding
code.
They should be studied and fixed case by case.

I don't think GTK2 should be used with Wayland. GTK2 was made before
Wayland existed.
Do distros that use Wayland by default still include GTK2 applications?

BTW, the mail you copied is from me but I forgot the context.
libXtst library dependency was removed from somewhere.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus