Pixmap cursor disappears.

Bug #1536710 reported by Brandon Schaefer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtubuntu (Ubuntu)
New
High
Unassigned

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.

Tags: cursor
kevin gunn (kgunn72)
Changed in qtubuntu:
importance: Undecided → High
Changed in qtubuntu (Ubuntu):
importance: Undecided → High
Revision history for this message
kevin gunn (kgunn72) wrote :

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

summary: - Pixmap curosr disappears.
+ Pixmap cursor disappears.
tags: added: cursor
Michał Sawicz (saviq)
no longer affects: qtubuntu
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.