New windows have incorrect dimensions on launch (not the dimensions the app specifies)

Bug #1542029 reported by kevin gunn
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Pocket Desktop
Invalid
High
Unassigned
Canonical System Image
Fix Released
High
Michał Sawicz
Ubuntu UX
Invalid
Undecided
Unassigned
miral (Ubuntu)
Invalid
Undecided
Unassigned
puritine (Ubuntu)
Invalid
High
Unassigned
qtmir (Ubuntu)
Fix Released
High
Unassigned
unity8 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

currently, the shell is picking some random window size.
They are about to change it to be close to what is on the phone - as this will match most apps.
however the Xapps should have something "larger"

shell is landing the ability to communicate to it, the desire default first launch window size

it would also be good to have design input on this selection

kevin gunn (kgunn72)
Changed in xorg-server (Ubuntu):
importance: Undecided → High
Changed in puritine (Ubuntu):
importance: Undecided → High
Changed in canonical-devices-system-image:
importance: Undecided → High
Changed in canonical-pocket-desktop:
importance: Undecided → High
Changed in canonical-devices-system-image:
assignee: nobody → kevin gunn (kgunn72)
status: New → Confirmed
summary: - Xapps should have a sensible default, first launch window size
+ Apps should have a sensible default, first launch window size
affects: xorg-server (Ubuntu) → unity8 (Ubuntu)
Changed in ubuntu-ux:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: Apps should have a sensible default, first launch window size

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in puritine (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Actually this bug occurs with all toolkits, not just Xmir.

Unity8 chooses an incorrect window size.

This also does not require design input as the apps themselves are providing sane default dimensions and Unity8 is just ignoring them. It works in other Mir shells though.

Changed in puritine (Ubuntu):
status: Confirmed → Invalid
summary: - Apps should have a sensible default, first launch window size
+ New windows have incorrect dimensions on launch (not the dimensions the
+ app specifies)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

When I say "sane" default dimensions I mean Unity8 is ignoring the initial window size specified by apps and always resizing them to something incorrect on launch.

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

This seems closely related to bug 1543467 too. Possibly a duplicate as in both cases the problem is Unity8 failing to honor the dimensions specified by the app.

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

Can we have a specific example of the bug?

The size of the window requested is a hint to the window manager, not a requirement. The requested size may legitimately be overridden (e.g. for layout reasons).

I.e. There is no guarantee that size created matches the requested size.

Changed in miral (Ubuntu):
status: New → Incomplete
Revision history for this message
Gerry Boland (gerboland) wrote :

Unity8 is overriding the client-requested window size in phone/tablet mode, but this shouldn't be happening for desktop mode.

We also need to save the client-requested window geometry in case shell later wishes to apply that.

Agreed I'd like a specific example

Changed in qtmir (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Specific examples:
(1) Open a drop-down menu in a GTK app and verify it looks the right size.
(2) Hover over some elements that will pop up a tooltip and to verify the tooltip is a sane size.
(3) xclock -geometry 100x100
(4) Run 'zenity --scale' and verify the default window size fits neatly around the widgets like in X.

I think you've probably fixed all this recently but it's mostly been discussed in bug 1543467 as mentioned above.

tags: added: resizing
kevin gunn (kgunn72)
tags: added: unity8-desktop
kevin gunn (kgunn72)
Changed in canonical-devices-system-image:
milestone: none → u8c-1
assignee: kevin gunn (kgunn72) → Michał Sawicz (saviq)
Michał Sawicz (saviq)
Changed in canonical-devices-system-image:
status: Confirmed → Fix Released
Changed in qtmir (Ubuntu):
status: Confirmed → Fix Released
Changed in unity8 (Ubuntu):
status: Confirmed → Fix Released
Changed in miral (Ubuntu):
status: Incomplete → Invalid
Changed in canonical-pocket-desktop:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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