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

Window doesn't reappear after show/hide/show

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.12.0 Alpha
    • QPA: Wayland
    • None
    • Linux, wayland
    • Linux/Wayland

    Description

      Since 5.12 (c5ab40) I get into a condition where new windows don't appear

       

      We call setGeometry (so sent mIniitalResize is true)

      We show a window

      We hide a window

      At this point I get setCanResize(false)

      I show the window, mCanResize doesn't change

      We get a configure event back

      mCanResize is still false, mSentInitialResize is true so we don't apply the configure

      sendExposeEvent fails the check mShellSurface->handleExpose) as the configure event is not accepted

      The window doesn't get shown

       

      Test: 

      https://cgit.kde.org/plasma-framework.git/tree/tests/dialog_positioning.qml

       click popup twice. Second doesn't appear

       

      Will require running under kwin with plasma installed, but Johan has this.

       

      Plasma:Popup does do horrible things, and I don't' see this issue for other windows.I /think/ it's us calling QWindow::setPosition at odd points, commenting them out does "fix it".

      I'll try and write a smaller test case.

       

       

      Attachments

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

        Activity

          People

            johanhelsing Johan Helsing
            davidedmundson David Edmundson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes