Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126092

Suggestions for include paths creates detached pop-up window on Wayland

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 6.7.1
    • QPA: Wayland
    • None
    • Arch Linux
      KDE Plasma 6.0.4
      Qt 6.7.1
    • Linux/Wayland

      When typing an include path, the suggestion list for completion will open in a separate detached window on Wayland for the second completion.

       

      Steps to reproduce:

      1. Type #include < to start an include statement.
      2. Start typing a path, then either choose an option with tab or type it out with a closing / for the first part of the path.
      3. For the next part of the path, the suggestions will open in a separate detached pop-up.

       

       

      In this screenshot I moved the window close to the code to demonstrate the issue, but in practice it often pops up in a corner of the screen based on where the Window Manager deems the "best" location for a new window.

       

      The first path suggestion shows next to the #include as expected, as do all the other suggestion pop-ups I've tried thus far. However, for the first suggestion the contents of the pop-up will often be an invalid surface that doesn't show the options.

      (EDIT: This seems to be a common issue with all pop-up windows on Wayland, I created QTCREATORBUG-30850 to cover that separately)

       

      The behavior seems correct when using X11.

        1. image-2024-05-26-15-22-43-908.png
          52 kB
          Aaron Barany
        2. image-2024-05-26-15-32-55-184.png
          23 kB
          Aaron Barany
        3. wayland-log.txt
          393 kB
          Aaron Barany
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davidedmundson David Edmundson
            akb825 Aaron Barany
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes