Mir

mir client API is missing getters for some surface attributes

Bug #1336553 reported by Daniel d'Andrada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Low
Robert Carr
mir (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

mir_surface_attrib_type -> mir_surface_get_type()
mir_surface_attrib_state -> mir_surface_get_state()
mir_surface_attrib_swapinterval -> mir_surface_get_swapinterval()
mir_surface_attrib_focus -> MISSING!
mir_surface_attrib_dpi -> mir_surface_get_dpi()
mir_surface_attrib_visibility -> MISSING!

Tags: clientapi

Related branches

Robert Carr (robertcarr)
Changed in mir:
assignee: nobody → Robert Carr (robertcarr)
status: New → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I recall focus being an attribute was kind of a convenient hack to fit the existing code. Really I still don't think it should be an attribute and thus should not have a getter. Surely it's more useful to ask Mir which surface has focus rather than probe each one. You can do more with such a function.

As for visibility, AFAIK we have no client API to explicitly set visibility so it shouldn't be gettable yet either.

Changed in mir:
status: In Progress → Opinion
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

> As for visibility, AFAIK we have no client API to explicitly set visibility so it shouldn't be gettable yet either.

So your can't have read-only attributes?

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

Sorry, not awake. You're right that some attributes will be read only. What I should have said is that visibility is not something that would ever change. At least not in the traditional windowing sense we don't use the visibility flag.

What I didn't realize is that while I vacationed we implemented occlusion notifications, and called it "visibility". That's a misnomer that confused me and we should probably fix. So yes, mir_surface_attrib_visibility would need a getter. Hopefully under a different name.

Changed in mir:
importance: Undecided → Low
status: Opinion → Triaged
tags: added: clientapi
Changed in mir:
milestone: none → 0.5.0
status: Triaged → In Progress
Changed in mir:
milestone: 0.5.0 → 0.6.0
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir/devel at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

mir (0.6.0+14.10.20140811-0ubuntu1) utopic; urgency=medium

Changed in mir (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
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.