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

X11: cannot programmatically minimize a frameless window

    XMLWordPrintable

Details

    Description

      If you make a frameless window with setWindowFlags(Qt::FramelessWindowHint);
      then in qxcbwindow.cpp, MWM_FUNC_MINIMIZE is not set. In some window managers, that means you cannot minimize the window. This is relevant for applications that wish to forego the window manager titlebar and have a custom one instead.

      http://comments.gmane.org/gmane.comp.desktop.mate.devel/125

      The workaround is to set

      setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint)

      An example of an app which does this is here:

      https://github.com/micku7zu/QtOneFM/blob/master/mainwindow.cpp

      Further discussion of the problem:

      http://forum.qt.io/topic/42893/qt-c-windowminimized-no-reaction-on-ubuntu

      Attachments

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              srutledg Shawn Rutledge
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes