Skip to content

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

@pintassilgo

Description

@pintassilgo
  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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions