mir_surface_apply_spec doesnt have a wait or a callback
Bug #1594485 reported by
Brandon Schaefer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Expired
|
Undecided
|
Unassigned |
Bug Description
When using mir_surface_
To post a comment you must log in.
I vaguely recall this opaqueness is an intentional design.
Having a wait handle or callback would be misleading. Because having the spec fully applied and completed does not imply that the change is visible on screen yet. It would only imply that the internal model has updated rather than the screen contents. Completion of mir_surface_ apply_spec also does not mean the client has yet been notified or responded yet. Because IPC takes time and we don't trust or ever wait for clients anyway.
The most you can ask for is notification of when the internal (server-side only) model has updated. And you should always assume the screen contents have not yet visually changed due to buffering and hardware lag.
Finally, we do not implement errors for spec changes. If the server refuses to apply a spec, you should never see that as successful completion of the function.
So is there still a use case to for a wait handle or callback at all?