Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Qt Wayland] Cuda existing window is not focused when you open text file #5514

Open
pintassilgo opened this issue May 9, 2024 · 5 comments

Comments

@pintassilgo
Copy link

pintassilgo commented May 9, 2024

  1. Wayland session.
  2. Launch Cuda Qt (both official Qt5 and Flatpak Qt6 are affected).
  3. Minimize Cuda and open a text file externally. For instance, by doubleclicking the file from desktop or from your file manager, or by terminal /path/to/cudatext "/path/to/textfile.txt".

Expected:

The already open Cuda window should jump to the front, displaying the file you opened.

Current:

The file opens, but Cuda window is not focused, you need to manually switch to it to read/edit.

Gtk is not affected.

I use KDE Plasma, but hopefully any DE running Wayland session is affected when you run Qt Cuda.

Currently, I run Cuda with QT_QPA_PLATFORM=xcb set to avoid this issue. By doing this, I'm launching Cuda as xwayland window instead of native Wayland, so I shouldn't do it. And Cuda xwayland has its own bugs like #5132.

@pintassilgo
Copy link
Author

Is this one Lazarus bug too?

@Alexey-T
Copy link
Owner

I guess yes, I will try to make repro-demo later.

@pintassilgo

This comment was marked as off-topic.

@Alexey-T
Copy link
Owner

I made the release on GH now, thanks.

@Alexey-T
Copy link
Owner

Lazarus bugreport:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40956

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants