Post by Akim DemaillePost by Christiaan HofmanI really have no idea what is happening for you, it really makes no sense. The fact is that on reloading we do absolutely nothing to the window, we just reload the PDF content.
Hi Christiaan,
Another issue is that when I close a document that was on the external
monitor and then reopen it, it always goes to my laptopâs screen instead
of the external monitor. The laptopâs screen is the declared main monitor.
Iâm running El Capitan 10.11.3, but I have observed this behavior for years,
when several generations of OS X and several versions of Skim.
I do not have the problem with Preview. When it refreshes a PDF, the
windows stays put, but it returns to page 1.
The way the PDF file is updated does not seem to matter: cat foo.pdf >bar.pdf
and mv foo.pdf bar.pdf both change the window size. And when I say
that the window is resized, well, actually it is closed and (another one I guess)
opened almost immediately. But I can see my screen flicker.
FWIW, there is nothing interesting in the logs. Is there a place I
should look at?
09/02/2016 08:21:06,561 Skim[68366]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.3 instead of 10.11.3. This is not a bug in Gestalt -- it is a documented limitation. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
09/02/2016 08:21:06,567 Skim[68366]: 0 CarbonCore 0x00007fff8ccc8c9b ___Gestalt_SystemVersion_block_invoke + 113
09/02/2016 08:21:06,567 Skim[68366]: 1 libdispatch.dylib 0x00007fff9fa0b33f _dispatch_client_callout + 8
09/02/2016 08:21:06,567 Skim[68366]: 2 libdispatch.dylib 0x00007fff9fa0b237 dispatch_once_f + 67
09/02/2016 08:21:06,567 Skim[68366]: 3 CarbonCore 0x00007fff8cc54b47 _Gestalt_SystemVersion + 987
09/02/2016 08:21:06,567 Skim[68366]: 4 CarbonCore 0x00007fff8cc53ddb Gestalt + 139
09/02/2016 08:21:06,567 Skim[68366]: 5 Skim 0x00000001000f2118 -[HIDRemote _setupService:] + 3996
09/02/2016 08:21:06,567 Skim[68366]: 6 Skim 0x00000001000f2fb0 -[HIDRemote _serviceMatching:] + 52
I donât get your comparison between Skim and Preview: those are completely different things, close and open versus reloading. (One keeps the window).
When you open a window, I guess it will open on the main screen, but that is really a system issue, the system decides where a new window will open.
BTW, we most definitely do *not* close and reopen the window when reloading, and neither does the system behind our backs (this is something we would definitely would know about).
There would be nothing in the logs, because nothing is going awry.
What must be going on is that the system doesnât like windows that donât fit the (main) screen, and at various times it seems to check and try to *correct* (overzealously). Thereâs nothing we can do about that, unfortunately, because it happens automatically behind our backs. I donât know when the system does this, they wonât tell us.
BTW, I am now able to reproduce it (without an external screen), by first hiding the Dock, then making the window larger (behind where the Dock was), then showing the Dock again, and then reloading. What I see is that the window is forced resized (by the system, not by us) already when it shows the initial sheet (asking whether to reload), so even before reloading. So my guess is that the system does this resizing of the window whenever it attaches a sheet. That may explain why it resizes on reload (because we show a hidden sheet at that point).
Christiaan