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

When a page is opened from outside ... #625

Open
johnwcowan opened this issue Sep 27, 2023 · 3 comments
Open

When a page is opened from outside ... #625

johnwcowan opened this issue Sep 27, 2023 · 3 comments
Labels

Comments

@johnwcowan
Copy link

... and Lagrange is not running, the new Lagrange window is in front.

But if Lagrange is already running, it opens in a new tab (good) but the window is not brought to the front, so I don't notice that the page has been opened (bad).

Fix: always front the page in this situation.

@skyjake
Copy link
Owner

skyjake commented Sep 28, 2023

Which OS does this apply to? SDL's behavior in this area is quite platform-dependent...

@johnwcowan
Copy link
Author

I've only used Lagrange on Windows, but it seems to me the behavior should be uniform across all platforms: they all have the idea of passing an URL to a browser that can handle it depending on the URL type, so however that happens the main window needs to be surfaced. But I may not know what I am talking about.

@skyjake
Copy link
Owner

skyjake commented Oct 6, 2023

You are right, that is the intended behavior on all platforms. I meant that the native APIs for this have different quirks depending on platform, and while SDL does a good job of hiding any differences, some workarounds may have to be applied manually.

@skyjake skyjake added the windows label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants