fix: drag and drop cancel

This commit is contained in:
hstyi
2025-02-06 11:29:51 +08:00
committed by hstyi
parent 1e461e529f
commit 58b56c4221

View File

@@ -136,7 +136,8 @@ class MyTabbedPane : FlatTabbedPane() {
return return
} }
val c = getTopMostWindowUnderMouse() // 如果是取消,那么不需要移动到其它窗口
val c = if (cancelled) null else getTopMostWindowUnderMouse()
if (c != owner && c is TermoraFrame) { if (c != owner && c is TermoraFrame) {
dragToAnotherWindow(c) dragToAnotherWindow(c)
} else { } else {