From: Mikael Magnusson Date: Wed, 16 Aug 2006 16:51:00 +0000 (+0000) Subject: try utf8 for WM_NAME if locale fails, really the _locale functions in prop.c are... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5b288939ab50d32731729239670142d3376429b8;p=chaz%2Fopenbox try utf8 for WM_NAME if locale fails, really the _locale functions in prop.c are busted and should be fixed but i have no idea how. --- diff --git a/openbox/client.c b/openbox/client.c index d4759bb9..2cf014f6 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1535,7 +1535,8 @@ void client_update_title(ObClient *self) /* try netwm */ if (!PROP_GETS(self->window, net_wm_name, utf8, &data)) { /* try old x stuff */ - if (!PROP_GETS(self->window, wm_name, locale, &data)) { + if (!PROP_GETS(self->window, wm_name, locale, &data) + && !PROP_GETS(self->window, wm_name, utf8, &data)) { // http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html if (self->transient) { data = g_strdup("");