HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
561 stars 44 forks source link

Fire EventWindowScreenChange when screen parameters change #117

Open tonsky opened 3 years ago

i10416 commented 2 years ago

What kind of event will EventWindowScreenChange handle?

Is EventWindowScreenChange supposed to notify resolution change like ScaleFactorChanged in winit? https://github.com/rust-windowing/winit/blob/1b3b82a3c1369c5248a2e6a251230ba6c615e918/src/dpi.rs#L55

tonsky commented 2 years ago

Yes, scale, resolution, color space etc

i10416 commented 2 years ago

Thanks. EventWindowScreenChange seems to be something much general.

Can I ask why you prefer sending them at once as EventWindowScreenChange, rather than notifying these changes separately?