mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Remove window subclassing (#1933)
* Remove window subclassing * Always call `DefWindowProcW` when we don't process a message * Improve window initialization Note that the error path in `init` is kind of cursed at the moment. * Rename `ThreadMsgTargetCallbackData` to `ThreadMsgTargetData` * Simplify window initialization * Fix compilation on 32-bit targets * Simplify the creation of the event target window * Use `.clone()` rather than `Rc::clone()` * Use concrete types for args to `SetWindowLongPtrW` On 32-bit targets, `SetWindowLongPtrW` is an alias to `SetWindowLongW`, which returns `LONG` (`i32`) rather than `LONG_PTR` (`isisze`). * Minor comment adjustments
This commit is contained in: