Ajout d'une tool box pour utiliser dwm car régression dans pyside 6.11. Pour le moment rester sur pyside 6.10.2
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
import ctypes
|
||||||
|
from sys import platform
|
||||||
|
|
||||||
|
def enable_blur_behind(hwnd: int) -> None:
|
||||||
|
"""Force DWM à activer la composition derrière la fenêtre."""
|
||||||
|
if not platform.startswith('win'):
|
||||||
|
return
|
||||||
|
try:
|
||||||
|
margins = (ctypes.c_int * 4)(-1, -1, -1, -1)
|
||||||
|
ctypes.windll.dwmapi.DwmExtendFrameIntoClientArea(hwnd, ctypes.byref(margins))
|
||||||
|
except Exception:
|
||||||
|
pass # Silencieux si DWM indisponible
|
||||||
Reference in New Issue
Block a user