Use convenience functions, and icccm shouldn't bother with netwm.
SVN revision: 14984
This commit is contained in:
parent
52a6e7f2a3
commit
74e94cfb71
|
@ -750,9 +750,7 @@ ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv)
|
||||||
void
|
void
|
||||||
ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t)
|
ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t)
|
||||||
{
|
{
|
||||||
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_ICON_NAME, (char *)t);
|
XSetIconName(_ecore_x_disp, win, (char *)t);
|
||||||
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
|
|
||||||
(char *)t);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -767,9 +765,8 @@ ecore_x_icccm_icon_name_get(Ecore_X_Window win)
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_NET_WM_ICON_NAME);
|
if (!XGetIconName(_ecore_x_disp, win, &name))
|
||||||
if (!name)
|
return NULL;
|
||||||
name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_ICON_NAME);
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue