diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /toolkit/crashreporter/client/app/src/ui/windows | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/crashreporter/client/app/src/ui/windows')
-rw-r--r-- | toolkit/crashreporter/client/app/src/ui/windows/window.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toolkit/crashreporter/client/app/src/ui/windows/window.rs b/toolkit/crashreporter/client/app/src/ui/windows/window.rs index 7e5e8f3f2a..0188ca8216 100644 --- a/toolkit/crashreporter/client/app/src/ui/windows/window.rs +++ b/toolkit/crashreporter/client/app/src/ui/windows/window.rs @@ -84,6 +84,15 @@ pub trait CustomWindowClass: WindowClass { 0, win::SWP_NOMOVE | win::SWP_NOSIZE | win::SWP_NOZORDER | win::SWP_FRAMECHANGED, )); + + // For reasons that don't make much sense, icons scale poorly unless set with + // `WM_SETICON` (see bug 1891920). + let icon = W::icon(); + if icon != 0 { + // The return value doesn't indicate failures. + win::SendMessageW(hwnd, win::WM_SETICON, win::ICON_SMALL as _, icon); + win::SendMessageW(hwnd, win::WM_SETICON, win::ICON_BIG as _, icon); + } } let result = unsafe { W::get(hwnd).as_ref() } |