Mads Marquart

Results 256 issues of Mads Marquart

Alternative to https://github.com/rust-windowing/winit/pull/3136. EDIT: We'd still need some more work to make `Fullscreen` `Send + Sync` on all platforms. Builds upon https://github.com/rust-windowing/winit/pull/3126 to remove the `unsafe` from `WindowBuilder::with_parent_window`, by taking...

Part of https://github.com/rust-windowing/winit/issues/2903. Builds upon https://github.com/rust-windowing/winit/pull/3056, so see the last commit(s) for the changes in this PR. Add an `ApplicationHandler` trait that replaces the `Event` enum (should probably be kept...

S - enhancement
S - api
S - platform parity

Introduced in #871 with unclear motivation. @mtak- could you provide context for why Winit has this? Is it just for convenience? - [ ] Tested on all platforms changed -...

DS - ios
S - maintenance

In [a recent blog post](https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html), the Cargo Team outlined some reasons why they've changed the default for `cargo new` to not exclude the lockfile from version control. I think `winit`...

C - needs discussion
S - meta

Part of https://github.com/rust-windowing/winit/issues/3367, opening to discuss separately. Winit needs some way for the user to synchronously respond to events with a value. Prominent examples include: - the dead key API...

S - api
C - needs discussion

Running the following fails, while it would succeed were I using a normal `cargo run`. ```sh cargo +nightly fuzz run my_fuzz_target --features=foo --features=bar ``` I know I can just combine...

Linking with `-weak_framework` is [recently](https://github.com/rust-lang/rust/pull/118448) possible on nightly: ```rust #![feature(link_arg_attribute)] #[link(name = "-weak_framework", kind = "link-arg", modifiers = "+verbatim")] #[link(name = "CoreFoundation", kind = "link-arg", modifiers = "+verbatim")] extern "C"...

`+[CALayer layer]` returns an autoreleased instance, but `CALayer::new` fails to retain said instance. This leads to a double-free in `CALayer`'s `Drop` implementation.

Redo of https://github.com/servo/core-foundation-rs/pull/513, see that for previous discussion and motivation (GitHub Actions was giving me trouble). --- I've focused on making this PR as minimal as possible, that is, I'm...

Is there a reason that the `embedded_hal::delay::DelayUs` API is not defined as follows: ```rust use core::time::Duration; pub trait Delay { fn delay(&mut self, duration: Duration); #[inline] fn delay_us(&mut self, us:...