Mir

Snapshot of non-fullscreen surface returns a fullscreen pixmap with white padding

Bug #1209216 reported by Gerry Boland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Invalid
Undecided
Unassigned
platform-api
New
Undecided
Unassigned
qtubuntu (Ubuntu)
New
Undecided
Unassigned

Bug Description

QtUbuntu creates non-fullscreen surfaces for Qt applications - on phone they are positioned at (0, 58) and have dimensions (720, 1222).

When shell requests a snapshot of a Qt application, Mir returns a pixmap of size 720x1280, with the top 58 rows of pixels all white.

Would be better if Mir returned snapshot of actual surface, so pixmap of size 720 x 1222.

Revision history for this message
Gerry Boland (gerboland) wrote :

With further research, QtUbuntu actually gets a fullscreen surface, as the methods ua_ui_window_resize and ua_ui_window_move in platform-api are stubs. Instead Qt doesn't draw above the panel as we set the y coordinate as non-zero in QPlatformWindow::setGeometry.

So correct fix for this issue is for platform-api to implement those stubs, and remove the non-zero y geometry coordinate from qtubuntu.

Mir is not to blame

Changed in mir:
status: New → Invalid
Michał Sawicz (saviq)
affects: qtubuntu → qtubuntu (Ubuntu)
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.