summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 19:28:31 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 19:46:06 +0200
commit9b7cfb7c8d8d337554ad7c5995ce75fac52c7d54 (patch)
treed2984feb328e1c2a05c80c75d1dd8032dafbb95b /src/manage.c
parent997bb3428312779a6f5af0264fa772407184ec17 (diff)
downloadratpoison-9b7cfb7c8d8d337554ad7c5995ce75fac52c7d54.zip
Move utf8_locale to its own file
So that we can easily use it from tests.
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manage.c b/src/manage.c
index 073235f..1440fab 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -184,7 +184,7 @@ get_wmname (Window w)
/* If current encoding is UTF-8, try to use the window's _NET_WM_NAME ewmh
property */
- if (defaults.utf8_locale)
+ if (utf8_locale)
{
Atom type = None;
unsigned long nitems, bytes_after;
@@ -231,7 +231,7 @@ get_wmname (Window w)
_NET_WM_NAME don't bother making their WM_NAME available as
UTF8_STRING (but only as either STRING or COMPOUND_TEXT).
Let's try anyway. */
- if (defaults.utf8_locale && text_prop.encoding == xa_utf8_string)
+ if (utf8_locale && text_prop.encoding == xa_utf8_string)
{
ret = Xutf8TextPropertyToTextList (dpy, &text_prop, &cl, &n);
PRINT_DEBUG (("Xutf8TextPropertyToTextList: %s\n",