summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pchelin <misha@FreeBSD.org>2025-01-19 14:58:29 +0300
committerHiltjo Posthuma <hiltjo@codemadness.org>2025-01-19 13:34:50 +0100
commit405d9cdf3aa998b48c87fe995125877673712a74 (patch)
treeff935be4cd24c401312822b2268ac228bc1e8147
parent7215169fbbb1f81c3bad49b847d1e5907f6ab70c (diff)
Use UTF8_STRING instead of COMPOUND_TEXTHEADmaster
Using XCompoundTextStyle makes gnome-shell issue countless warnings in the message log when switching between tabs or selecting text: gnome-shell[5357]: Window manager warning: Window 0x800003 has property _NET_WM_NAME that was expected to have type UTF8_STRING format 8 and actually has type COMPOUND_TEXT format 8 n_items 0. This is most likely an application bug, not a window manager bug. The window has title="0:2:vim - "hostname" " class="tabbed" name="tabbed"
-rw-r--r--tabbed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tabbed.c b/tabbed.c
index 81be5e4..e5664aa 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -1264,7 +1264,7 @@ xsettitle(Window w, const char *str)
XTextProperty xtp;
if (XmbTextListToTextProperty(dpy, (char **)&str, 1,
- XCompoundTextStyle, &xtp) == Success) {
+ XUTF8StringStyle, &xtp) == Success) {
XSetTextProperty(dpy, w, &xtp, wmatom[WMName]);
XSetTextProperty(dpy, w, &xtp, XA_WM_NAME);
XFree(xtp.value);