_x11 window drag fix
Some checks are pending
Build Android / Game (Android, Release ARM64) (push) Waiting to run
Build iOS / Game (iOS, Release ARM64) (push) Waiting to run
Build Linux / Editor (Linux, Development x64) (push) Waiting to run
Build Linux / Game (Linux, Release x64) (push) Waiting to run
Build macOS / Editor (Mac, Development ARM64) (push) Waiting to run
Build macOS / Game (Mac, Release ARM64) (push) Waiting to run
Build Windows / Editor (Windows, Development x64) (push) Waiting to run
Build Windows / Game (Windows, Release x64) (push) Waiting to run
Cooker / Cook (Mac) (push) Waiting to run
Tests / Tests (Linux) (push) Waiting to run
Tests / Tests (Windows) (push) Waiting to run

This commit is contained in:
2025-01-28 02:43:13 +02:00
parent 8c2aa72ef1
commit 982c03e061

View File

@@ -279,6 +279,7 @@ namespace FlaxEditor.GUI.Docking
// Make sure the all the dock hint areas are not under other windows
_toDock?.RootWindow.Window.BringToFront();
//_toDock?.RootWindow.Window.Focus();
// Make the dragged window transparent when dock hints are visible
_toMove.Window.Window.Opacity = _toDock == null ? 1.0f : DragWindowOpacity;
@@ -431,8 +432,9 @@ namespace FlaxEditor.GUI.Docking
private void OnUpdate()
{
var mousePos = Platform.MousePosition;
if (_toMove.Window.Window.IsFocused)
return; // Filter out mouse updates after dragging is over in dragged window
//needs to be commented out for X11, enabled for Wayland or Windows?
//if (_toMove.Window.Window.IsFocused)
// return; // Filter out mouse updates after dragging is over in dragged window
if (_mouse != mousePos)
OnMouseMove(mousePos);