Skip to content

Add safe constructors for display and window handles #156

@notgull

Description

@notgull

There are some DisplayHandle and WindowHandle variants that are completely safe to construct. For instance:

  • Most DisplayHandles are just indicators of the currently running display system and don't involve any borrowed state.
  • An [Xlib/Xcb]DisplayHandle with a display of None can be constructed safely.
  • Win32WindowHandle, [Xlib/Xcb]WindowHandle and WASM web handles involve window IDs with no borrowed state.

It should be possible to construct these safely, with constructors on the safe types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions