egui/crates
Thomas Krause cc9f1adb84
Add an optional app_id field to eframe's NativeOptions for Wayland (#3007)
* Add an optional app_id field to eframe's NativeOptions (#1600).

This is used in the window builder to set the application ID, which is e.g. important for a proper configuration in `.desktop` files under Wayland.
When no application ID is explicitly set, it defaults to the title of the window.

* Only enable NativeOptions::app_id under Linux.

The wayland feature is not sufficent as constraint and it won't compile e.g. under Windows.
While Wayland could also be used on other Unix-Systems like FreeBSD, this would probably need some specific testing. Winit uses the following definition as "wayland_platform" and on which the required packages are available:

> wayland_platform: { all(feature = "wayland", free_unix, not(wasm), not(redox)) },

* Do not use title as default application ID under Wayland.

The title might be used to also communicate state (opened file, ...) to the user and this might have unforeseen consequences for the application ID. It seems to be better to use the old behavior of not setting an application ID in this case. Also add an example on how to set the application ID in the documentation.

* Avoid as_deref(), which was a left-over of a previous version

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-05-22 21:40:04 +02:00
..
ecolor Fix typos (#2866) 2023-04-18 15:52:45 +02:00
eframe Add an optional app_id field to eframe's NativeOptions for Wayland (#3007) 2023-05-22 21:40:04 +02:00
egui Mention `store` in `TextEditState` doc comment (#2988) 2023-05-22 19:33:23 +02:00
egui-wgpu Log warning instead of error when failing to decode RON in storage (#2961) 2023-04-27 09:45:44 +02:00
egui-winit Update accesskit to 0.11 (#3012) 2023-05-22 19:20:58 +02:00
egui_demo_app chore: disable default feature for chrono (#2993) 2023-05-22 19:33:06 +02:00
egui_demo_lib clippy fixes from 1.69.0 2023-04-21 11:33:18 +02:00
egui_extras chore: disable default feature for chrono (#2993) 2023-05-22 19:33:06 +02:00
egui_glium Fix typos (#2866) 2023-04-18 15:52:45 +02:00
egui_glow Log warning instead of error when failing to decode RON in storage (#2961) 2023-04-27 09:45:44 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Add `emath::Rangef` and helpers for splitting a `Rect` (#2978) 2023-05-08 12:20:26 +02:00
epaint Fix documentation for TextureId::Managed(0) (#2998) 2023-05-22 20:37:26 +02:00