bevy/examples/window
VitalyR 7705c1dd6c
Add name to bevy:🪟:Window (#7650)
# Objective
- Fixes  #4188, make users could set application ID for bevy apps.

## Solution

- Add `name` field to `bevy:🪟:Window`. Specifying this field adds
different properties to the window: application ID on `Wayland`,
`WM_CLASS` on `X11`, or window class name on Windows. It has no effect
on other platforms.
---

## Changelog

### Added
- Add `name` to `bevy:🪟:Window`.

## Migration Guide

- Set the `bevy_window::Window`'s `name` field when needed:
```rust
App::new()
        .add_plugins(DefaultPlugins.set(WindowPlugin {
            primary_window: Some(Window {
                title: "I am a window!".into(),
                name: Some("SpaceGameCompany.SpaceShooter".into()),
                ..default()
            }),
            ..default()
        }))
        .run();
```

---------

Co-authored-by: François <mockersf@gmail.com>
2024-02-05 13:35:35 +00:00
..
clear_color.rs Rename Input to ButtonInput (#10859) 2023-12-06 20:32:34 +00:00
low_power.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
multiple_windows.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
scale_factor_override.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
screenshot.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
transparent_window.rs Fix doc link in transparent_window example (#9697) 2023-09-05 05:43:26 +00:00
window_resizing.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
window_settings.rs Add name to bevy:🪟:Window (#7650) 2024-02-05 13:35:35 +00:00