Mir

Resize of nested server surfaces never reaches mir::graphics::NestedOutput - nested server always renders with original size

Bug #1294574 reported by Andreas Pokorny
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Alan Griffiths
mir (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Run mir_demo_server_shell and another one nested. Launch mir_demo_client_fingerpaint inside the nested one. Resize the window. This will resize only the nested server surface, since the hosting demo shell processes the gesture. Note that the finger paint surface stays aligned to the bottom left corner of the surface. On Nexus 10 this is position is (0,1600). This is wrong since our window frame is setup to have (0,0) in the top left corner and (0,window height) in the bottom left corner.

After some digging: The resize of the surface is never notified to NestedOutput nor the GLRenderer. Hence the view port uses the initiail size like 0,0-2560,1600 on N10.

Tags: nested

Related branches

Changed in mir:
assignee: nobody → Andreas Pokorny (andreas-pokorny)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yeah I would expect we never implemented the logic for nested server surface resize --> nested server output resize/reconfig.

Is that expected to happen much, if at all?

tags: added: nested
Changed in mir:
status: New → Triaged
importance: Undecided → Low
importance: Low → Medium
Revision history for this message
Gerry Boland (gerboland) wrote :

I want this

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

This only happens because an unsuitable window manager is selected for the host server. Try "--display-server system-compositor"

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

s/"--display-server system-compositor"/"--window-manager system-compositor"/

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Is that a fix attached or just "related"?

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

When I get back from vacation I'll check that the problem is fixed by the linked branch (with the above consideration that a suitable window manager must be selected).

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Yes, fixed.

$ sudo mir_demo_server --arw-file --file /tmp/mir_socket --vt 2 --window-manager system-compositor --display-config sidebyside&
$ mir_demo_server --host-socket /tmp/mir_socket --display-config sidebyside --launch-client mir_demo_client_eglplasma

Changed in mir:
assignee: Andreas Pokorny (andreas-pokorny) → Alan Griffiths (alan-griffiths)
status: Triaged → Fix Released
Changed in mir:
milestone: none → 0.14.0
Changed in mir (Ubuntu):
status: New → Fix Released
importance: Undecided → Medium
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.