From cba01e9c8df1aa965acfb72bb91685ce8a7b5580 Mon Sep 17 00:00:00 2001 From: XiaoYouChR Date: Sun, 11 Aug 2024 14:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Linux=20=E4=B8=8B=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E7=AA=97=E5=8F=A3=E4=B8=8A=E9=83=A8=E8=BE=B9=E6=A1=86?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E8=B0=83=E6=95=B4=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qframelesswindow/titlebar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qframelesswindow/titlebar/__init__.py b/qframelesswindow/titlebar/__init__.py index ed559f0..3a8146a 100644 --- a/qframelesswindow/titlebar/__init__.py +++ b/qframelesswindow/titlebar/__init__.py @@ -80,7 +80,7 @@ def _isDragRegion(self, pos): if button.isVisible(): width += button.width() - return 0 < pos.x() < self.width() - width + return self.window().BORDER_WIDTH < pos.x() < self.width() - width and pos.y() > self.window().BORDER_WIDTH def _hasButtonPressed(self): """ whether any button is pressed """