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

Qt5 apps running natively on Wayland are not minimized to systray when the button in title bar is clicked

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.1
    • QPA: Wayland
    • Linux/Wayland

      Hi

       

      I use Arch Linux running KDE Plasma 5.15.2 and Qt 5.12.1 on Wayland.

       

      "Minimize to tray" feature of apps running natively on Wayland does not work when I try to minimize such apps to systray by clicking on the minimize button in the title bar

      or by clicking their entry in the task bar of KDE Plasma.

      Such apps only are minimized to systray as expected when I click their icon in the systray.

      "Minimize to tray" also works as expected when I force the same apps to run on Xwayland runing "QT_QPA_PLATFORM=xcb app".

       

      Some affected apps:

      https://gitlab.com/william.belanger/qoob/issues/9

       

      https://github.com/qbittorrent/qBittorrent/issues/10036

       

      qoob dev wrote:

      "It is either a Qt or a Wayland limitation. The windowStateChange event is not trigerred as the window is minimized, and the windowState() return an incorrect value. Oddly, the reported window states seems to be limited to "activated" and "maximize" in Wayland."

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johanhelsing Johan Helsing
            strangiato strangiato
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes