Bug 691577

Summary: x11_main.c:wintitle() doesn't seem to work for Xfbdev
Product: MuPDF Reporter: Graham Gower <graham.gower>
Component: appsAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: Other   
OS: Linux   
Customer: Word Size: ---

Description Graham Gower 2010-08-27 00:23:40 UTC
Mupdf's title bar does not show anything on my system (mipsel linux built with openembedded). I assume this is because I'm using Xfbdev, but it could be something else. I tried two different window managers and got the same "unnamed window" behaviour.

In any event, something on my system doesn't recognise WM_LOCALE_NAME and needs WM_NAME.

diff --git a/apps/x11_main.c b/apps/x11_main.c
index 395f9fd..c045863 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -198,6 +198,7 @@ void wincursor(pdfapp_t *app, int curs)
 
 void wintitle(pdfapp_t *app, char *s)
 {
+	XStoreName(xdpy, xwin, s);
 #ifdef X_HAVE_UTF8_STRING
 	Xutf8SetWMProperties(xdpy, xwin, s, s, nil, 0, nil, nil, nil);
 #else