Shell wants way to associate initially requested window creation state with the window later created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MirAL |
Fix Released
|
Medium
|
Alan Griffiths |
Bug Description
Use-case is for a multi-mode shell, where window management policy differs in each mode. Mode 1 is tablet mode, where shell must override the surface size requested by the client. Mode 2 is desktop where the surface size requested by the client is honoured.
Desired behaviour:
User launches app in tablet mode. Window of size a1,b1 requested, shell overrides and returns a2,b2. User switches to desktop mode, shell resizes window to a1,b1.
Problem:
Shell implements the tablet override with WMP::place_
When Mir creates the surface, it then calls WMP::advise_
If it has this identifier, it could remember the initially requested window state itself and apply that on mode change.
Related branches
- Gerry Boland (community): Approve
-
Diff: 158 lines (+48/-1)7 files modifieddebian/changelog (+6/-0)
debian/libmiral1.symbols (+3/-0)
include/miral/window_specification.h (+2/-0)
miral/basic_window_manager.cpp (+4/-0)
miral/symbols.map (+7/-0)
miral/window_specification.cpp (+11/-0)
scripts/process_doxygen_xml.py (+15/-1)
Changed in miral: | |
status: | Triaged → In Progress |
assignee: | nobody → Alan Griffiths (alan-griffiths) |
Changed in miral: | |
importance: | Undecided → Medium |
Changed in miral: | |
status: | In Progress → Fix Committed |
Changed in miral: | |
milestone: | none → 0.3 |
Changed in miral: | |
status: | Fix Committed → Fix Released |
if we added a user_data property onto the WindowSpecification and miral copied that to the WindowInfo it would help