Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docking of tiles #30

Open
emilk opened this issue Nov 17, 2023 · 1 comment
Open

Docking of tiles #30

emilk opened this issue Nov 17, 2023 · 1 comment

Comments

@emilk
Copy link
Member

emilk commented Nov 17, 2023

egui recently got support for multi-viewports (many native windows).

I'd like to be able to drag out a tile from the root egui viewport, spawning a new viewport containing that tile. That is, something like how browser tabs can be detached from their parent window into their own windows, and then dragged back into the parent window again.

For this to work well we should support:

  • Dragging out a tile into a new viewport
  • Dragging one viewport onto another viewport, merging the two
  • Dragging tiles between viewports

Detecting that one viewport is being dragged onto another is complicated without:

@emilk emilk changed the title Create new viewports Docking of tiles Nov 17, 2023
@lylythechosenone
Copy link

Perhaps a bit off topic, but one important thing to consider here is how this should work on tiling window managers. I daily drive Hyprland, and as an example, Chrome's tab moving feature is actually incredibly broken. I'd like to see a solution that works better. I'm not sure how exactly that solution would be implemented, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants