Incorrect window size obtained from WindowResolution
in version 0.12
#10642
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
Bevy version
latest(0.12)
What you did
I'm a archlinux and tiling window manager user, also used to coding in neovim.
To reproduce, just write the following program and run it:
What went wrong
Expected:
Correct input in terminal to report the window size.
Since the bevy window split in half the 1920 * 1080 screen, so the correct size must be that divided by 2.
The cursor should be at the center of the window.
As the
window.set_cursor_position(Some(size / 2)
showed.That was what I expected but in newer version bevy, I get these:
In terminal I got the size of 1280 * 720
Notice that
1280 * 720
is the default value in window.rsSince that I got incorrect cursor position in my window.
That is very strange because the same program act normally in 0.11.3 bevy, that I find out.
Additional information
Before running this program I executed
sudo pacman -Syu
in my archlinux system.That is to say, I already have the latest system environment.
I chose
wezterm
as my default terminal, andbash
as my main shell.In my project, I have
dynamic_linking
feature enabled, and naturally, haveresolver = "2"
in[workspace]
entry.Can anyone give me a help hand? Thanks a lot!
The text was updated successfully, but these errors were encountered: