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

Qt does not set WM_NAME property



    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.2
    • Fix Version/s: 5.5.0 Beta
    • Component/s: QPA: X11/XCB
    • Labels:
    • Environment:
      Archlinux, Qt5, X11
    • Commits:


      Qt does not set the WM_NAME property for window titles, only _NET_WM_NAME.

      It seems it's not strictly required according to ICCCM/[EWMH|http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#idm140130317621408]:

      Regarding WM_NAME:

      The WM_NAME property is an uninterpreted string that the client wants the window manager to display in association with the window

      Regarding _NET_WM_NAME:

      The Client SHOULD set this to the title of the window in UTF-8 encoding. If set, the Window Manager should use this in preference to WM_NAME.

      I also opened a discussion on the wm-spec-list@gnome.org list about this, where Martin Gräßlin said:

      Qt 5's XCB backend doesn't support many "deprecated" features where there is a
      EWMH replacement. For example it also doesn't support setting a window icon
      through the WM_HINTS (ICCCM section property. Given that I
      interpreted this as a design decision to not support the "deprecated" hints in
      the new implementation.

      However, unfortunately not setting WM_NAME causes problems in the wild, for example:

      I understand the argument of not maintaining "deprecated" things, but here it seems it really causes trouble at a lot of other places - of course I'll submit bug reports there as applicable as well.


          Issue Links

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



              • Assignee:
                srutledg Shawn Rutledge
                the compiler Florian Bruhin
              • Votes:
                0 Vote for this issue
                6 Start watching this issue


                • Created:

                  Gerrit Reviews

                  There are no open Gerrit changes