Recent

Author Topic: Qt6: User clicks another window but Lazarus-app-window keeps the focus  (Read 974 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Auto translated from Rus bugreport on the forum of the app:
==
Probably not for you, the Lazarus bug. The OS is the same, Ubuntu 24.04. Focus on CudaText. You cannot switch to another application by clicking on the icon on the panel. The focus remains on CudaText. Also, when you move the cursor from CudaText to the input window of another application and enter text, the input goes to the CudaText tab. In order for the input to go in the desired window, you need to click the mouse several times.
== quote ended

Qt6, Lazarus was taken from Git 'main' on 17-Nov-2025.

Anybody can repeat it?
« Last Edit: November 21, 2025, 03:27:01 pm by AlexTP »

Thaddy

  • Hero Member
  • *****
  • Posts: 18729
  • To Europe: simply sell USA bonds: dollar collapses
Re: Qt6: User clicks another app but Laz app keeps the focus
« Reply #1 on: November 21, 2025, 02:49:15 pm »
I have to build for Qt6, but is that already stable in Lazarus?
I will try, though, as with any two of your children.
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Re: Qt6: User clicks another app but Laz app keeps the focus
« Reply #2 on: November 21, 2025, 02:53:46 pm »
Qt6 is rather good and stable. Minor issues can be seen in my bugtracker:
https://github.com/Alexey-T/CudaText/issues?q=is%3Aissue%20state%3Aopen%20Qt

(open 8, closed 57).

AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Re: Qt6: User clicks another app but Laz app keeps the focus
« Reply #3 on: November 21, 2025, 03:00:46 pm »
I can _almost stable_ repeat the bug on Ubuntu 22.x with CudaText/Qt6. When I type '222' in my editor, then do ONE click on opened Trash-window, it _sometimes_ is not activated after this first click (but ok after 2nd click).
« Last Edit: November 21, 2025, 03:02:36 pm by AlexTP »


AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #5 on: November 22, 2025, 08:10:36 am »
Without that commit: for me, clicks are not ignored now, but I wait for the user reply.

zeljko

  • Hero Member
  • *****
  • Posts: 1828
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #6 on: November 22, 2025, 12:56:23 pm »
What do you mean by ignored ? Does it work.correct with cuda text or not ? I cannot reproduce it here. Is it x11 or wayland ? Flatpak or normal build ?

AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #7 on: November 22, 2025, 02:01:20 pm »
'ignored'? I mean that with cudatext older version (before 1.230.1, you can get all versions at https://sourceforge.net/projects/cudatext/files/release/ ) first mouse click was 'ignored' by OS when I click opened Trash-window.
when I revert that mentioned diff, 1st mouse click works again (cudatext 1.230.1).

wayland!
normal build in .xz file.
« Last Edit: November 22, 2025, 02:06:44 pm by AlexTP »

zeljko

  • Hero Member
  • *****
  • Posts: 1828
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #8 on: November 22, 2025, 02:08:48 pm »
Downloaded qt6 linux amd64 version , cannot reproduce your problem Linux Mint 22 KDE Plasma x11.

AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #9 on: November 22, 2025, 02:10:42 pm »
1) you have x11, I have wayland.
2) you have different desktop: KDE, i have Gnome.

Fred vS

  • Hero Member
  • *****
  • Posts: 3780
    • StrumPract is the musicians best friend
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #10 on: November 22, 2025, 02:29:14 pm »
@AlexTP:  Did you try to switch to X11 (change login and select X11 instead of Wayland), and then compile CudaText with Qt6/X11.

Then re-login and switch back to Wayland and try to run  CudaTex/Qt6t/X11 (it will be run by XWayland).

It will be interesting to compare both CudaText-Pure-Wayland vs  CudaText-Pure-X11 running on a Wayland system.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

zeljko

  • Hero Member
  • *****
  • Posts: 1828
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #11 on: November 22, 2025, 04:26:49 pm »
1) you have x11, I have wayland.
2) you have different desktop: KDE, i have Gnome.

Please, always note is it x11 or wayland. That's missing puzzle always when you report something. I don't use wayland at all, so patches are welcome ,and patches which are clearly marked that changes something only for wayland implementation. QtWS.IsWayland

AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #12 on: November 22, 2025, 05:01:12 pm »
I got the idea. so can you, please, modify 'that patch' to apply it to x11 only, and use the old code for wayland?

zeljko

  • Hero Member
  • *****
  • Posts: 1828
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #13 on: November 23, 2025, 09:24:07 am »
Why editor fonts are so ugly ? I've enableed antialiasing in config but still far from synedit in lazarus ?

AlexTP

  • Hero Member
  • *****
  • Posts: 2672
    • UVviewsoft
Re: Qt6: User clicks another window but Lazarus-app-window keeps the focus
« Reply #14 on: November 23, 2025, 10:34:50 am »
OnTopic:
User wrote that - it is the same after my change, clicks on taskbar icons do not activate programs.

Quote
>Why editor fonts are so ugly ?

If you are on Linux, try to write to user.json:
Code: Pascal  [Select][+][-]
  1. "font_quality__linux": 4,
If it does not help, try value "5". If it does not help, no idea yet. Is it better in gtk2-version than in qt6-version? how it is in qt5-version?



« Last Edit: November 23, 2025, 10:40:54 am by AlexTP »

 

TinyPortal © 2005-2018