Skip to content

Commit b7f4980

Browse files
authored
Version 3.1.4
* Fixed a screen change bug.
1 parent 3c39174 commit b7f4980

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pypdfeditor_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
__system__ = platform.system()
1717
__author__ = "Nianze A. TAO (Omozawa SUENO)"
18-
__version__ = "3.1.3"
18+
__version__ = "3.1.4"
1919
__all__ = ["main", "reset", "remove"]
2020

2121

pypdfeditor_core/window_effect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def monitorNCCALCSIZE(_msg: MSG, geometry: QRect) -> None:
8282
params.rgrc[0].left = geometry.x()
8383
params.rgrc[0].top = geometry.y()
8484
params.rgrc[0].right = geometry.width()
85-
# enable to show taskbar when it is set to auto-hide
86-
params.rgrc[0].bottom = geometry.height() - 1
85+
params.rgrc[0].bottom = geometry.height() # - 1 # is it needed anymore?
8786

8887
def add_window_style(self, h_wnd: int) -> None:
8988
"""

pypdfeditor_core/windows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ def __init__(self, system: str, version: str):
453453
self.windowHandle().screenChanged.connect(
454454
lambda: self.windowEffect.screen_change(int(self.winId())),
455455
)
456+
self.windowHandle().screen().availableGeometryChanged.connect(
457+
lambda: self.windowEffect.screen_change(int(self.winId())),
458+
)
456459
try:
457460
_loc = wrg.HKEY_CURRENT_USER
458461
_wm = wrg.OpenKeyEx(_loc, r"Control Panel\Desktop\WindowMetrics")

0 commit comments

Comments
 (0)