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

Inconsistent warp_mouse when used within unfocused window-manager popup #59722

Closed
Sauermann opened this issue Mar 31, 2022 · 0 comments · Fixed by #65496
Closed

Inconsistent warp_mouse when used within unfocused window-manager popup #59722

Sauermann opened this issue Mar 31, 2022 · 0 comments · Fixed by #65496

Comments

@Sauermann
Copy link
Contributor

Godot version

v4.0.alpha.custom_build [b7850bb]

System information

Linux, Debain 11, Xfce, Nvidia, Vulkan

Issue description

warp_mouse does not work correctly within unfocused popup.
Within "Sun and Environment Settings", warp_mouse is triggered after releasing LMB after dragging the Azimuth slider.
This results in the mouse cursor being moved to the scene-tree dock.

I would expect, that after releasing the Azimuth slider, the mouse cursor appears at the Azimuth slider.

BugSpinSliderInPopup.mp4

DisplayServerX11::warp_mouse uses as reference Window the DisplayServerX11::last_focused_window.
It looks like the "Sun and Environment Settings"-popup window is not the DisplayServerX11::last_focused_window, but the main window is.

Steps to reproduce

  1. Open Editor
  2. Create Node3D
  3. Open Sun and Environment Settings
  4. Drag and release Azimuth slider

Minimal reproduction project

Editor issue

@Sauermann Sauermann changed the title Inconsistend warp_mouse when used within unfocused popup Inconsistent warp_mouse when used within unfocused window-manager popup Mar 31, 2022
@Calinou Calinou added this to the 4.0 milestone Mar 31, 2022
@KoBeWi KoBeWi moved this to To Assess in 4.x Priority Issues Apr 9, 2022
@KoBeWi KoBeWi moved this from To Assess to Todo in 4.x Priority Issues Apr 9, 2022
@KoBeWi KoBeWi moved this from Todo to In Progress in 4.x Priority Issues Sep 8, 2022
Repository owner moved this from In Progress to Done in 4.x Priority Issues Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants