mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: 修复在 Linux 环境下无法移动窗口的问题
This commit is contained in:
@@ -381,7 +381,7 @@ class TermoraFrame : JFrame() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun mousePressed(e: MouseEvent) {
|
override fun mousePressed(e: MouseEvent) {
|
||||||
if (e.source == toolbar) {
|
if (e.source == toolbar.getJToolBar()) {
|
||||||
if (!isWindowDecorationsSupported && SwingUtilities.isLeftMouseButton(e)) {
|
if (!isWindowDecorationsSupported && SwingUtilities.isLeftMouseButton(e)) {
|
||||||
if (JBR.isWindowMoveSupported()) {
|
if (JBR.isWindowMoveSupported()) {
|
||||||
JBR.getWindowMove().startMovingTogetherWithMouse(this@TermoraFrame, e.button)
|
JBR.getWindowMove().startMovingTogetherWithMouse(this@TermoraFrame, e.button)
|
||||||
|
|||||||
Reference in New Issue
Block a user