ardaku / sprengui

Rust Native-ish GUI Toolkit - Designed for use with Cala, but not limited to Cala.
Apache License 2.0
2 stars 2 forks source link

Multi-Window #4

Open AldaronLau opened 2 years ago

AldaronLau commented 2 years ago

When there are multiple displays, Sprengui should allow multiple windows to be created (useful for video editors, animation software, etc.). But must adapt to one window when there is only one display.

CATboardBETA commented 2 years ago

Why can't the user just create two Windows?

AldaronLau commented 2 years ago

If the user starts with a dual-screen setup, they should be able to create two windows - but sprengui should automatically remove a window if the user disconnects a screen and re-add it once the screen is plugged in again. How much of this is actually automatic is still to be determined, but that's the general idea. Also, I think there are some benefits to having the windows attached to each other programmatically (same event loop, closing one closes both, etc.), but details of that still need to be worked out as well - probably as implement and see how it goes / if it needs changes.