From a87d4ddf82ac727aff1cdbcb030e8b9cea389c82 Mon Sep 17 00:00:00 2001 From: hstyi Date: Thu, 9 Jan 2025 16:06:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=20Linux=20?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E6=97=A0=E6=B3=95=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/app/termora/TermoraFrame.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/termora/TermoraFrame.kt b/src/main/kotlin/app/termora/TermoraFrame.kt index 553594c..4a7a136 100644 --- a/src/main/kotlin/app/termora/TermoraFrame.kt +++ b/src/main/kotlin/app/termora/TermoraFrame.kt @@ -381,7 +381,7 @@ class TermoraFrame : JFrame() { } override fun mousePressed(e: MouseEvent) { - if (e.source == toolbar) { + if (e.source == toolbar.getJToolBar()) { if (!isWindowDecorationsSupported && SwingUtilities.isLeftMouseButton(e)) { if (JBR.isWindowMoveSupported()) { JBR.getWindowMove().startMovingTogetherWithMouse(this@TermoraFrame, e.button)