** Summary changed:

- Pixmap curosr disappears.
+ Pixmap cursor disappears.

** Tags added: cursor

-- 
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 cursor 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to