Add window title to app_ids for different
"app_ids" can be used for multiple windows Signed-off-by: Lei.Huang <leihuang@amd.com>main
parent
e8b1dfef9b
commit
39eab4bf44
|
@ -1270,7 +1270,11 @@ void Wayland_ShowWindow(_THIS, SDL_Window *window)
|
|||
}
|
||||
} else {
|
||||
data->shell_surface.xdg.roleobj.toplevel = xdg_surface_get_toplevel(data->shell_surface.xdg.surface);
|
||||
if (c->classname != NULL) {
|
||||
xdg_toplevel_set_app_id(data->shell_surface.xdg.roleobj.toplevel, c->classname);
|
||||
} else {
|
||||
xdg_toplevel_set_app_id(data->shell_surface.xdg.roleobj.toplevel, window->title);
|
||||
}
|
||||
xdg_toplevel_add_listener(data->shell_surface.xdg.roleobj.toplevel, &toplevel_listener_xdg, data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue