← Back to team overview

touch-packages team mailing list archive

[Bug 1536710] Re: Pixmap curosr disappears.

 

i specifically witness this when i launch Qt's samegame example
application on mir snap

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtubuntu in Ubuntu.
https://bugs.launchpad.net/bugs/1536710

Title:
  Pixmap curosr disappears.

Status in qtubuntu:
  New
Status in qtubuntu package in Ubuntu:
  New

Bug description:
  When a pixmap cursor is created the stream is destroyed right after.
  This causes the cursor to vanish.

  qtubuntu/src/ubuntumirclient/cursor.cpp:164
      mir_buffer_stream_swap_buffers_sync(bufferStream);

      {
          auto configuration = mir_cursor_configuration_from_buffer_stream(bufferStream, cursor.hotSpot().x(), cursor.hotSpot().y());
          mir_surface_configure_cursor(surface, configuration);
          mir_cursor_configuration_destroy(configuration);
      }

      mir_buffer_stream_release_sync(bufferStream);

  
  The issue being once you create the stream for the cursor, that is the ONLY handle on the stream for the cursor. So releasing it right after its created will cause it to disappear.

  You've to keep a pointer to the stream and release it when the cursor
  is destroyed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qtubuntu/+bug/1536710/+subscriptions