-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Tested on Windows 10, Godot 4.3-stable.
When you specifically close the Boscaceoil Blue when in maximized mode, then reopen it, the mouse position got from get_local_mouse_position() will be misaligned. I added a ColorRect and updated the code to control its position using get_local_mouse_position() when the app was running.
Here was what it looked like in windowed mode and full-screen mode:
And here was it in maximized mode:
The misaligned mouse position caused the problem when bars from arrangement was going to be deleted, the mouse position, which is used to determine which bar would be selected, failed to fall into the bounding Rect of the track. It either wouldn't delete any bars or delete the wrong one.
I suspect this code here, at res://globals/WindowManager.gd, line 71 to line 73, is the issue:
# On web the position is meaningless and should be zero, if it's not then mouse position becomes misaligned.
if not OS.has_feature("web"):
_main_window.move_to_center()Remove the not made the issue disappear. So maybe moving the window in maximized mode is not desirable.