Bug 691577 - x11_main.c:wintitle() doesn't seem to work for Xfbdev
Summary: x11_main.c:wintitle() doesn't seem to work for Xfbdev
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: apps (show other bugs)
Version: unspecified
Hardware: Other Linux
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 00:23 UTC by Graham Gower
Modified: 2011-02-02 14:58 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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