summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-04-25 00:18:38 +0200
committerTor Andersson <tor@ghostscript.com>2005-04-25 00:18:38 +0200
commit69362d609d6e5f1b31d952308c01d01ec51c8227 (patch)
tree94a02fde8bf340fe512799ffc383caf0519ed813
parent19a3017206189742d57932f3b57e3e8dd0cb4402 (diff)
downloadmupdf-69362d609d6e5f1b31d952308c01d01ec51c8227.tar.xz
set window size when window is mapped first time, configurenotify does not arrive with sawfish wm
-rw-r--r--apps/unix/x11pdf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c
index bfe41888..95da895f 100644
--- a/apps/unix/x11pdf.c
+++ b/apps/unix/x11pdf.c
@@ -167,6 +167,9 @@ void winresize(pdfapp_t *app, int w, int h)
if (!mapped)
{
+ gapp.winw = w;
+ gapp.winh = h;
+
XMapWindow(xdpy, xwin);
XFlush(xdpy);