or set an environment variable that tells Qt5 to use xcb rather than Wayland.
Easy test is to set it just for the run -
QT_QPA_PLATFORM=xcb ./lazarus <enter>
If you start lazarus from your menu system, you will have a desktop file, probably /usr/share/applications/lazarus.desktop, if so, edit it, as root, find the line that looks like this -
and make it look like -
Exec=env QT_QPA_PLATFORM startlazarus %f
(I have not tested it with startlazarus but no reason I can see why it would not work. I normally start lazarus directly, "$>./lazarus" because startlazarus is not necessary if your lazarus files are in your own user space.)
As long as you start these apps from the command line, you can set this env var in your .bashrc so it applies to your Qt5 (and Qt6) apps -
$> echo "export QT_QPA_PLATFORM=xcb" >> ~/.bashrc
And source it (or close and reopen terminal). A better solution would be to set it system wide but I am not going to get into an argument about the best way to do that !
Do not be concerned about (partially) bypassing Wayland, it adds no value to your system, is, IMHO slower and lacking important features. Maybe, one day it will be fit for purpose but not yet. RedHat pushed it to Fedora because they want to fast track its development and they don't really care about Fedora, only RHEL. The other felt they had to follow (again, IMHO).
Davo