mir::scene::Surface has no getter for orientation, just a setter
Bug #1357429 reported by
Gerry Boland
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Confirmed
|
Wishlist
|
Unassigned | ||
mir (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
mir::scene::Surface has:
virtual void set_orientation
and mir::scene:
virtual void orientation_
but there's no way to read the current orientation. Shell itself has to save that state externally, which is not ideal IMO
Changed in mir: | |
status: | New → Confirmed |
To post a comment you must log in.
I personally disapprove of this (and the existing setter too). Orientation should be an attribute of the screen. Not an attribute of any particular surface. Only if you want individual surfaces to rotate but not others (like Unity8 does now keeping the top bar unrotated) does it make sense. However I suspect that is a bug and not desired behaviour.
Also note set_orientation doesn't need to exist either. It is redundant with the older function set_transformat ion(). A getter already exists in the form of: Renderable: :transformation ()
I think we need to unify the redundant "orientation" and "transformation" functions. When that's done, we can make sure a getter is still available in the right place for you.