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

Some pop up windows appear on the wrong monitor when code or shader editor are floating on the second monitor #78854

Open
Tetane opened this issue Jun 29, 2023 · 1 comment

Comments

@Tetane
Copy link
Contributor

Tetane commented Jun 29, 2023

Godot version

4.1-rc2

System information

Windows 10, Two monitors

Issue description

The "Create shader node" window is appearing inside the boundaries of the main Godot editor window instead of the visual shader editor window when it's floating. Trying to fix this in #78996.

The "Search Help" window of the script editor always appears on the first monitor, even if the editor and/or the main Godot window is on the second monitor.

Steps to reproduce

Make the visual shader editor floating. Put the window on a second monitor and right click to open the "Create shader Node" window.

Make the code editor floating, put it on the second monitor and open the "Search Help" window.

Minimal reproduction project

N/A

@Tetane Tetane changed the title Some pop up windows appears on the wrong monitor when code or shader editor are floating on the second monitor Some pop up windows appear on the wrong monitor when code or shader editor are floating on the second monitor Jun 29, 2023
@trollodel
Copy link
Contributor

I think all popups always assume that there is only one window. They are usually relative to the right node, for this reason they are luckily placed in the right place. But not all, and some popups are placed in the main window, following it.
See this comment for a possible solution (this is for the progress dialog, but it's not the only one with that issue).

Side note: I had this speculative suspect while I worked on multi window support for code editors, but doesn't appear evidently to me in my tests.

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

No branches or pull requests

3 participants