feat(wayland): Window::SetAppId
xdg_toplevel.set_app_id, so the compositor can match the window to its .desktop file: the icon, the task switcher, activation.
This commit is contained in:
parent
678f38964f
commit
0d8287c122
2 changed files with 9 additions and 0 deletions
|
|
@ -620,6 +620,12 @@ void Window::SetTitle(const std::string_view title) {
|
|||
#endif
|
||||
}
|
||||
|
||||
void Window::SetAppId(const std::string_view id) {
|
||||
#ifdef CRAFTER_GRAPHICS_WINDOW_WAYLAND
|
||||
xdg_toplevel_set_app_id(xdgToplevel, std::string(id).c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
void Window::SetTextInput(bool active, std::int32_t x, std::int32_t y, std::int32_t width, std::int32_t height, TextInputPurpose purpose) {
|
||||
#ifdef CRAFTER_GRAPHICS_WINDOW_WAYLAND
|
||||
textInputActive_ = active;
|
||||
|
|
|
|||
Loading…
Reference in a new issue