summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_window.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-08-21 13:29:27 -0400
committerChris Michael <cp.michael@samsung.com>2014-10-01 16:15:37 -0400
commit0655178b3b16111167a5ad983239aafccd25ac04 (patch)
treec06436031d708ca654dccd95ce22fff6b1215e86 /src/lib/ecore_wayland/ecore_wl_window.c
parent3c2f43194fc55cd758c462307361a7aaec7e142b (diff)
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>
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_window.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index 4b0de0c358..0d6ca72087 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -909,7 +909,9 @@ ecore_wl_window_class_name_set(Ecore_Wl_Window *win, const char *class_name)
909 if (!win) return; 909 if (!win) return;
910 eina_stringshare_replace(&win->class_name, class_name); 910 eina_stringshare_replace(&win->class_name, class_name);
911 911
912 if ((win->shell_surface) && (win->class_name)) 912 if ((win->xdg_surface) && (win->class_name))
913 xdg_surface_set_app_id(win->xdg_surface, win->class_name);
914 else if ((win->shell_surface) && (win->class_name))
913 wl_shell_surface_set_class(win->shell_surface, win->class_name); 915 wl_shell_surface_set_class(win->shell_surface, win->class_name);
914} 916}
915 917