fix(wm): listen to settingchange + devicechange

This commit adds listeners on two more events, WM_SETTINGCHANGE and
WM_DEVICECHANGE, in the hope of more reliably catching monitor
attachments and detachments based on info in an SO answer.

fix #267
This commit is contained in:
LGUG2Z
2022-10-31 12:38:59 -07:00
committed by جاد
parent 75d72522a2
commit 91c532d9b1
2 changed files with 35 additions and 1 deletions
+2 -1
View File
@@ -56,7 +56,8 @@ features = [
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Shell",
"Win32_UI_Shell_Common",
"Win32_UI_WindowsAndMessaging"
"Win32_UI_WindowsAndMessaging",
"Win32_System_SystemServices"
]
[features]