forked from enlightenment/efl
ecore-wayland: Add support for xdg_surface class name
xdg_shell supports setting a "class name" on a window by using xdg_surface_set_app_id. This commit implements that. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
96d7784c8c
commit
c97a050056
|
@ -904,7 +904,9 @@ ecore_wl_window_class_name_set(Ecore_Wl_Window *win, const char *class_name)
|
|||
if (!win) return;
|
||||
eina_stringshare_replace(&win->class_name, class_name);
|
||||
|
||||
if ((win->shell_surface) && (win->class_name))
|
||||
if ((win->xdg_surface) && (win->class_name))
|
||||
xdg_surface_set_app_id(win->xdg_surface, win->class_name);
|
||||
else if ((win->shell_surface) && (win->class_name))
|
||||
wl_shell_surface_set_class(win->shell_surface, win->class_name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue