On Sun, Feb 05, 2012 at 11:30:03PM +0100, Uli Armbruster wrote:
> * Thomas Dean <78abc_AT_web.de> [02.02.2012 17:20]:
> > On Thu, Feb 02, 2012 at 14:45:42 +0100, Uli Armbruster wrote:
> > > Means, only after refocusing mupdf, it looks fine. It doesn't depend on
> > > this certain pdf file, it happens with all pdf files. It also doesn't
> > > depend on the layout I use. Using no layout (floating) it's fine.
> >
> > I have the exact same problem. This is the only annoyance of dwm for me.
>
> Ok, so this behavior is known.
Just looked at the mupdf code and it seems it's mupdf's fault. When
mupdf starts it will ask for a certain window size and wait for a
MapNotify event. Every other event (in particular the ConfigureNotify
that tells mupdf about the changed window size) will be discarded.
If we would want to fix mupdf's behavior in dwm we would have to break
other apps that require a resize before being mapped (and a comment in
the dwm code states that there are apps that require this).
Attached is a patch to mupdf's git checkout 657a66bf1c5 which also
applies (with offsets) to 0.9. Maybe there's a better solution but this
works for me.
--
Eckehard Berns
Received on Mon Feb 06 2012 - 12:47:47 CET