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

Cocoa NSFullSizeContentViewWindowMask was wiped when toggling fullscreen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.7, 6.2.0 Beta3, 6.3.0 Alpha
    • 5.10.1, 5.11.1
    • QPA
    • None
    • macOS 10.13
    • macOS
    • d627d351bedb96c727aa6e3b7cb2cc2d678c5606 (qt/qtbase/dev) d3ac94e2b7788797444d32b6e7a3796f385bd757 (qt/qtbase/6.1) 39dc6106e2bc1e96ed1105f2c79f327d80e703a8 (qt/qtbase/6.2) 55204eab25333e49b149436163fdd7a542cd7915 (qt/tqtc-qtbase/5.15)

    Description

      The attached test case hide the titlebar with NSFullSizeContentViewWindowMask styleMask, after toggle fullscreen titlebar became visible.

      add code below to src/plugins/platforms/cocoa/qcocoawindow.mm (3.png) compile cocoa fixed the problem.

      if (m_view.window.styleMask & NSFullSizeContentViewWindowMask)
        styleMask |= NSFullSizeContentViewWindowMask;

      Attachments

        1. 1.png
          1.png
          4 kB
        2. 2.png
          2.png
          4 kB
        3. 3.png
          3.png
          176 kB
        4. Demo.zip
          3 kB
        For Gerrit Dashboard: QTBUG-69975
        # Subject Branch Project Status CR V

        Activity

          People

            vestbo Tor Arne Vestbø
            bubbling Heng Wang
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: