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)