Replace lazy window message ids with a slimmer version (#2598)

This commit is contained in:
John Nunley 2023-02-04 06:38:21 -08:00 committed by GitHub
parent 69d6076310
commit 5ba6bdef49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 101 additions and 40 deletions

View file

@ -841,7 +841,7 @@ impl Drop for Window {
unsafe {
// The window must be destroyed from the same thread that created it, so we send a
// custom message to be handled by our callback to do the actual work.
PostMessageW(self.hwnd(), *DESTROY_MSG_ID, 0, 0);
PostMessageW(self.hwnd(), DESTROY_MSG_ID.get(), 0, 0);
}
}
}