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

In Windows, GR window appears behind Julia window #541

Open
droodman opened this issue Mar 28, 2024 · 2 comments
Open

In Windows, GR window appears behind Julia window #541

droodman opened this issue Mar 28, 2024 · 2 comments

Comments

@droodman
Copy link

I find that in Windows 11, using GR; histogram(randn(10000)) puts the plot window behind the Julia window. Often there's no indication that a plot was made. In a way, it's a small thing. But I think it can also make newcomers who are deciding whether to invest time in learning a new package (GR, Plots) think it's not working, and give up. I don't know if it can be fixed.

Thanks.

@jheinen
Copy link
Owner

jheinen commented Apr 4, 2024

Unfortunately, the behavior when opening GKS windows is not the same on different platforms. Depending on which window manager is used, the graphics window is moved to the foreground and/or receives the input focus (although we use the same code when creating a new window).

I will try to achieve the same behavior on all platforms. However, it may be necessary to force a certain behavior via an environment variable (e.g. GKS_WINDOW_BEHAVIOUR).

@jheinen
Copy link
Owner

jheinen commented Apr 5, 2024

In the current developer branch, we have introduced an environment variable GKS_QT_WINDOW_STAYS_ON_TOP, which can be used to force the GKS Qt window to remain in the foreground. Other solutions were not effective across platforms. Unfortunately, we were also unable to prevent the current input focus from being lost on some systems.

A new GR version (with this change) is planned for next week.

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