macOS: Merge window and delegate state (#3391)

Previously we had a sort of artificial split between these, but both were accessing each other's state, since it's really the same state!
It was especially difficult to follow what happens to the fullscreen state.
So instead, we basically merge the window and the delegate files.

This does unfortunately screw a bit with the git history, apologies to whoever reads this in the future!
This commit is contained in:
Mads Marquart 2024-01-14 05:19:23 +01:00 committed by GitHub
parent c86b0daf7f
commit 14b418a3a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1516 additions and 1520 deletions

View file

@ -75,7 +75,7 @@ impl PanicInfo {
#[derive(Debug)]
pub struct EventLoopWindowTarget {
delegate: Id<ApplicationDelegate>,
mtm: MainThreadMarker,
pub(super) mtm: MainThreadMarker,
}
impl EventLoopWindowTarget {