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
Window dimensions are limited by wrong monitor #22736
Comments
AFAIK "Monitor 1" is not the primary monitor, it's the first monitor from the left. See also #21150. |
Actually I'm not sure about this. "Monitor 1" is screen |
@akien-mga "Monitor 2" spawns the window in the smaller monitor, and "Same as Editor" works correctly too. I also tested with the smaller monitor set to "primary" and it also worked as expected ("Monitor 1" being the smaller monitor, etc.) |
@Homer666 I don't have your screen setup, but I am very curious what the In my experience so far on Windows, Godot doesn't order the monitors based on the OS arrangement. I have mine swapped in the OS, and Godot does start on what is the "primary", but it counts with index 1, rather than 0. Would like to know if you're experiencing something similar. |
@avencherus Just tried it, it's reading the monitor indexes correctly, respecting what monitor I have set to "primary" and reporting an index of 0 for that. |
@Homer666 Thanks running that test. Yeah, it must be referencing the wrong monitor at some point in the startup. I wonder. Definitely something I'll be watching for when I go back to doing some display and cursor testing on Linux in the coming weeks. There was some fix some time ago on the X11 end where certain display queries were lagging behind by a frame or two. This was fixed using some yielding, #21914. @hpvb Might this be related or similar to the timing issues with the window sizes? |
Can anyone on Linux/*BSD still reproduce this bug in Godot 3.2.3 or any later release? If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop. |
Godot version:
3.1-alpha 8068d02
OS/device including version:
Linux Mint 19 Cinnamon x64 (Muffin window manager)
Issue description:
I have two displays: one that is 2560x1440, and one that is 1280x1024. They have this layout:
Note that the larger monitor is set as the "primary" monitor.
The problem is that any Godot window, upon being spawned, will have its size capped to the dimensions of the smaller, secondary monitor. This includes the Godot editor itself, if forced to open windowed.
For example, I created a project with a window size of 2000x1200:
The window should fit on the 2560x1440 monitor. Just to be sure, the editor settings for window placement are configured for Monitor 1 (the primary monitor, being the larger one):
The project itself just displays the window size:
When running the project, the window size will always be capped to 1280x1024, the size of the second monitor:
cc @Calinou, maybe you're able to help diagnose the problem.
Minimal reproduction project:
This is the project I used: multiple monitor window size bug.zip
It doesn't do much, and you might have to modify the window size to match your monitors, so this might not be too useful...
The text was updated successfully, but these errors were encountered: