mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-30 14:12:21 +02:00
We had a mut requirement on some of the Window functions which may have been vestigial or in preparation for more state on Window objects, but presently unused. I removed that, as the Window struct is currently just carrying an HWND value that's essentially always immutable - there's no advantage to ever reusing a Window struct vs. making a new one for another HWND. In doing so we then no longer needed to be passing in mutable events, so I applied a little simplification of the event receiver / dispatcher to process_event. After that it became obvious that we could just pass the owned event directly into process_event instead, which substantially simplifies the ownership model and lifetime for those objects. This is small, and shouldn't create any meaningful behavioral change.