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

Can't drag things between monitors anymore since 4.3 #95639

Closed
desastreger opened this issue Aug 16, 2024 · 6 comments · Fixed by #95665
Closed

Can't drag things between monitors anymore since 4.3 #95639

desastreger opened this issue Aug 16, 2024 · 6 comments · Fixed by #95665

Comments

@desastreger
Copy link

desastreger commented Aug 16, 2024

Tested versions

4.3 stable

System information

Windows 10 - 4.3 stable - Forward+

Issue description

Updated to 4.3 and now I can't drag nodes between monitors. I have my setup as in the image (central editor in the middle and filesystem, scene and Node Inspectors on the left monitor) and if I have nodes in my scene inspector that I want to drag to my script in the central monitor it won't take many times. I saw this mentioned on Reddit as well.

Same happens if I have an object in the filesystem into a node in the node inspector.

image
(screenshot is on 4.2.1 because I had to revert to continue working)

Steps to reproduce

Drag node from scene inspector in one monitor to code editor on a different monitor

Minimal reproduction project (MRP)

N/A

@AeioMuch
Copy link
Contributor

AeioMuch commented Aug 16, 2024

From my tests, the problem in 4.3 compared to 4.2.2 is that the detached dock window must first have the focus when you initiate the drag, or it will not work, does not matter if it is between different monitors or not. To be clear, to make it work you must first click the dock window to make it take the focus, then click again to initate the drag. Second issue that also affect 4.2.2 is that the drag preview that follow the mouse cursor is not working between windows either.

@Calinou
Copy link
Member

Calinou commented Aug 16, 2024

@desastreger Can you try following the same steps on 4.3 dev/beta/RCs to determine when the regression started? You can download them here.

@Calinou Calinou changed the title Can't drag things between monitors! 4.3 Can't drag things between monitors anymore since 4.3 Aug 16, 2024
@tetrapod00
Copy link
Contributor

Since window focus matters, I thought I would test this to see if anything was different #95606.

In 4.3.stable:

  • When Scene tab is attached, drag and drop to Script tab works.
  • With floating Scene window on the same display as Script tab: drag and drop works.
  • With floating Scene window on another display, Scene window focused: drag and drop works.
  • With floating Scene window on another display, Scene window unfocused: drag and drop does not work. No reference to a node is placed in the scripting editor. Also, releasing LMB on the main display does not actually end the dragging action. This is still visible:

fE8Hu9zNfr

With the artifact from this PR:
Same behavior in all cases.

Specs: Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 Ti with Max-Q Design (NVIDIA; 32.0.15.5612) - AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8 Threads)

@AeioMuch
Copy link
Contributor

Bisected to 12fda2f (#91361)
cc @RandomShaper

@Hilderin
Copy link
Contributor

I'm able to reproduce on only one monitor. Windows 11 Godot 4.3 rc3

If Destination has focus before draging, it's working but the cursor is incorrect when the drag&drop could be completed.

devenv_Jb84V4swcF.mp4

@kitbdev
Copy link
Contributor

kitbdev commented Aug 16, 2024

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

Successfully merging a pull request may close this issue.

8 participants