Skip to content

Commit

Permalink
修复窗口右侧鼠标无响应的问题 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyiYo committed Feb 9, 2024
1 parent f140af1 commit dc4d422
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qframelesswindow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:license: GPLv3, see LICENSE for more details.
"""

__version__ = "0.3.7"
__version__ = "0.3.8"

import sys

Expand Down
3 changes: 2 additions & 1 deletion qframelesswindow/windows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
Expand Down

0 comments on commit dc4d422

Please sign in to comment.