-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Winit currently has two calls that do very similar things, with_app_id and with_class. Generally I think these are rarely used with different parameters and more commonly the code is just duplicated between both of them. As an abstraction library that shouldn't make downstream care too much about Wayland/X11, I think this gives winit the opportunity to unify these two methods to make things a bit easier to use.
They are of course not exactly the same and depending on the platform the number of arguments is different, but since they should generally overlap this can be resolved by thorough documentation.
Of course even when unified, people could still do x11/Wayland checks on their own if they really want to treat these methods differently.
So the main reason why one wouldn't want to do this is that these aren't commonly set to the same thing. I can only speak for myself and Alacritty where we do indeed set these to the same value, so I'm curious about others here. Are there any downstream users treating these as different things?