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

Windows are shown in xcb plugin without show() being called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.1.0
    • GUI: Window management
    • None
    • Ubuntu 12.10 running KDE on x86-64
    • Change-Id: I8d1c467874bdee3300a1b18b8174b2d62f498713

    Description

      Apply following patch to examples/gui/rasterwindow:

      diff --git a/examples/gui/rasterwindow/main.cpp b/examples/gui/rasterwindow/main.cpp
      index f34a419..331f329 100644
      — a/examples/gui/rasterwindow/main.cpp
      +++ b/examples/gui/rasterwindow/main.cpp
      @@ -48,6 +48,11 @@ int main(int argc, char **argv)
      RasterWindow window;
      window.show();

      + QWindow hiddenWindow;
      + hiddenWindow.resize(400, 300);
      + hiddenWindow.create();
      + hiddenWindow.setTitle("Should not be shown");
      +
      return app.exec();
      }
      //! [1]

      The window should not be shown since we only call create(). However, it ends up getting shown, typically after a couple of seconds. The bug is caused by b5bdd31de41cb5e6d6abedce79864fc01d8d4984, which does xcb_map_window on the window for some reason. Presumably that means the X window receives a property notify on QXcbAtom::_XEMBED_INFO with the XEMBED_MAPPED bit set.

      Attachments

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

        Activity

          People

            mardy Alberto Mardegan
            rodal Samuel Rødal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes