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

Qt does not set WM_NAME property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0 Beta
    • 5.3.2
    • QPA: X11/XCB
    • None
    • Archlinux, Qt5, X11
    • 641b8d2b84896e277678307a3e7bbac9f64cff76

    Description

      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 4.1.2.4) 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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes