diff --git a/qframelesswindow/__init__.py b/qframelesswindow/__init__.py index b4b39be..3d67356 100644 --- a/qframelesswindow/__init__.py +++ b/qframelesswindow/__init__.py @@ -12,7 +12,7 @@ :license: GPLv3, see LICENSE for more details. """ -__version__ = "0.3.7" +__version__ = "0.3.8" import sys diff --git a/qframelesswindow/windows/__init__.py b/qframelesswindow/windows/__init__.py index b5749e2..b81f506 100644 --- a/qframelesswindow/windows/__init__.py +++ b/qframelesswindow/windows/__init__.py @@ -82,7 +82,8 @@ def nativeEvent(self, eventType, message): pos = QCursor.pos() xPos = pos.x() - self.x() yPos = pos.y() - self.y() - w, h = self.width(), self.height() + w = self.frameGeometry().width() + h = self.frameGeometry().height() # fixes issue https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/98 bw = 0 if win_utils.isMaximized(msg.hWnd) or win_utils.isFullScreen(msg.hWnd) else self.BORDER_WIDTH diff --git a/setup.py b/setup.py index cc0162c..6356ed3 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name="PyQt5-Frameless-Window", - version="0.3.7", + version="0.3.8", keywords="pyqt frameless", author="zhiyiYo", author_email="shokokawaii@outlook.com",