Discussion:
[Skim-app-users] Automatic refresh resizes the windows
Akim Demaille
2016-02-08 18:35:52 UTC
Permalink
Hi all,

When I use Skim on a PDF document coming from a LaTeX document I work on,
automatic reloading discards the layout I chose and returns to a window
size that I need to manually enlarge.

I have a dual display, the external screen being in portrait so that I
can see the whole page. When reloading, Skim makes my window half the
size of the screen. Actually, it looks like it reduced my window to
the smallest height (the one of the laptop) and to the smallest width
(that of the external monitor), instead of just keeping the current setup,
based on the dimensions of the screen the window was in.

Am I doing something wrong?

This is Skim 1.4.17

Cheers.
Alan Harper Lists
2016-02-08 20:52:35 UTC
Permalink
Does PDF:Use Current View Settings as Default not solve the problem?

-- 
Alan Harper Lists
Sent with Airmail

On February 8, 2016 at 10:36:44, Akim Demaille (***@lrde.epita.fr) wrote:

Hi all,

When I use Skim on a PDF document coming from a LaTeX document I work on,
automatic reloading discards the layout I chose and returns to a window
size that I need to manually enlarge.

I have a dual display, the external screen being in portrait so that I
can see the whole page. When reloading, Skim makes my window half the
size of the screen. Actually, it looks like it reduced my window to
the smallest height (the one of the laptop) and to the smallest width
(that of the external monitor), instead of just keeping the current setup,
based on the dimensions of the screen the window was in.

Am I doing something wrong?

This is Skim 1.4.17

Cheers.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Skim-app-users mailing list
Skim-app-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users
Christiaan Hofman
2016-02-08 21:56:56 UTC
Permalink
Post by Alan Harper Lists
Does PDF:Use Current View Settings as Default not solve the problem?
--
Alan Harper Lists
Sent with Airmail
Post by Akim Demaille
Hi all,
When I use Skim on a PDF document coming from a LaTeX document I work on,
automatic reloading discards the layout I chose and returns to a window
size that I need to manually enlarge.
I have a dual display, the external screen being in portrait so that I
can see the whole page. When reloading, Skim makes my window half the
size of the screen. Actually, it looks like it reduced my window to
the smallest height (the one of the laptop) and to the smallest width
(that of the external monitor), instead of just keeping the current setup,
based on the dimensions of the screen the window was in.
Am I doing something wrong?
This is Skim 1.4.17
Cheers.
I 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.

Christiaan
José Miguel Figueroa-O'Farrill
2016-02-08 23:06:14 UTC
Permalink
The following is not very constructive, but this is a very old bug (not of Skim necessarily) with dual displays. I basically stopped using dual displays with LaTeX for this very reason.

José
Post by Christiaan Hofman
Post by Alan Harper Lists
Does PDF:Use Current View Settings as Default not solve the problem?
--
Alan Harper Lists
Sent with Airmail
Post by Akim Demaille
Hi all,
When I use Skim on a PDF document coming from a LaTeX document I work on,
automatic reloading discards the layout I chose and returns to a window
size that I need to manually enlarge.
I have a dual display, the external screen being in portrait so that I
can see the whole page. When reloading, Skim makes my window half the
size of the screen. Actually, it looks like it reduced my window to
the smallest height (the one of the laptop) and to the smallest width
(that of the external monitor), instead of just keeping the current setup,
based on the dimensions of the screen the window was in.
Am I doing something wrong?
This is Skim 1.4.17
Cheers.
I 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.
Christiaan
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140_______________________________________________
Skim-app-users mailing list
https://lists.sourceforge.net/lists/listinfo/skim-app-users
Prof José Figueroa-O'Farrill
School of Mathematics
University of Edinburgh
PGP Key: 0x6A6BD529 (MIT PGP Key Server)

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Akim Demaille
2016-02-09 07:37:16 UTC
Permalink
Post by Christiaan Hofman
I 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.
Call location:
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
Christiaan Hofman
2016-02-09 11:21:37 UTC
Permalink
Post by Akim Demaille
Post by Christiaan Hofman
I 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
Akim Demaille
2016-02-09 12:30:54 UTC
Permalink
Hi Christiaan,
I don’t get your comparison between Skim and Preview: those are completely different things, close and open versus reloading. (One keeps the window).
You are right, my message was badly written. What I said about reopening
is dead wrong, forget about it. However, I meant to emphasize that this
resizing behavior does not happen with Preview: when I have a document
open and I change it, then Preview updates the displayed content but
keeps the window dimensions. However, it goes to page 1.
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).
What is really surprising is that it’s slow enough for me to see the
background of my display bw the closing of the original window, and the
apparition to the resized one. That’s not what I usually see for changes
of window sizes.
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.
Well, Preview does not seem to have this problem. But I definitely agree
that the team of Preview might have access to features not open to public
developpers :(
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).
I can get exactly the same behavior with Preview indeed. But on the secondary
screen it does respect my window size.

Akim Demaille
2016-02-09 07:22:49 UTC
Permalink
Post by Alan Harper Lists
Does PDF:Use Current View Settings as Default not solve the problem?
No difference.
Christiaan Hofman
2016-02-09 11:07:29 UTC
Permalink
Post by Akim Demaille
Post by Alan Harper Lists
Does PDF:Use Current View Settings as Default not solve the problem?
No difference.
It shouldn’t these settings are only used when opening a file, not when reloading.

Christiaan
Loading...