Skip to content
This repository was archived by the owner on Jul 31, 2020. It is now read-only.
This repository was archived by the owner on Jul 31, 2020. It is now read-only.

Should the lifetime of a Screen object be limited? #8

Closed
@michaelwasserman

Description

@michaelwasserman

A question about the lifetime of Screen objects was raised recently:

Looks like this takes the extra step of exposing this to workers, whereas the original Screen object was not. This raises an interesting question (and I believe it's one that we'll have to answer if we move to partial interfaces). The current Screen implementation returns 0's once the LocalFrame for the associated Screen object is gone. Should ScreenEnumerationScreen be doing that too, somehow?

We should consider this further, but my initial inclination would be to allow the Screen to exist beyond the lifetime of any LocalFrame. One requirement of this interface is providing screen information to open a window when a worker doesn't have any windows open (perhaps triggered by a notification). That scenario might be more difficult if the Screen lifetime is linked to that of a LocalFrame. Perhaps allowing Screens to exist while a notification is being handled could be sufficient?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions