X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprop.c;h=e622c7dd74572d19a0fc31057494670b8dba7063;hb=3e90c85df00fd9fc21b8f51a3c5e961ced731fee;hp=d13a0515c8bf581c50e28cb36cb2d57dcfb54f22;hpb=fefbf38726d60995462de8a94f3c361877b5c56c;p=chaz%2Fopenbox diff --git a/openbox/prop.c b/openbox/prop.c index d13a0515..e622c7dd 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -85,6 +85,7 @@ void prop_startup() CREATE(net_wm_strut, "_NET_WM_STRUT"); CREATE(net_wm_strut_partial, "_NET_WM_STRUT_PARTIAL"); CREATE(net_wm_icon, "_NET_WM_ICON"); + CREATE(net_wm_icon_geometry, "_NET_WM_ICON_GEOMETRY"); /* CREATE(net_wm_pid, "_NET_WM_PID"); */ CREATE(net_wm_allowed_actions, "_NET_WM_ALLOWED_ACTIONS"); CREATE(net_wm_user_time, "_NET_WM_USER_TIME"); @@ -302,8 +303,7 @@ gboolean prop_get_string_locale(Window win, Atom prop, gchar **ret) gchar *s; if (get_stringlist(win, prop, &list, &nstr) && nstr) { - s = g_convert(list[0], strlen(list[0]), "UTF-8", "ISO-8859-1", - NULL, NULL, NULL); + s = g_locale_to_utf8(list[0], -1, NULL, NULL, NULL); XFreeStringList(list); if (s) { *ret = s; @@ -332,8 +332,7 @@ gboolean prop_get_strings_locale(Window win, Atom prop, gchar ***ret) (*ret)[count] = NULL; /* null terminated list */ for (i = 0, it = strs; it; ++i, it = g_slist_next(it)) { - (*ret)[i] = g_convert(it->data, -1, "UTF-8", "ISO-8859-1", - NULL, NULL, NULL); + (*ret)[i] = g_locale_to_utf8(it->data, -1, NULL, NULL, NULL); /* make sure translation did not fail */ if (!(*ret)[i]) (*ret)[i] = g_strdup(""); @@ -445,6 +444,7 @@ void prop_message(Window about, Atom messagetype, glong data0, glong data1, ce.xclient.data.l[1] = data1; ce.xclient.data.l[2] = data2; ce.xclient.data.l[3] = data3; + ce.xclient.data.l[4] = 0; XSendEvent(ob_display, RootWindow(ob_display, ob_screen), FALSE, mask, &ce); }