emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to restore the layout?


From: Jan Djärv
Subject: Re: How to restore the layout?
Date: Fri, 28 Jun 2013 14:31:51 +0200

28 jun 2013 kl. 14:00 skrev Juanma Barranquero <address@hidden>:

> On Fri, Jun 28, 2013 at 12:01 PM, Jan Djärv <address@hidden> wrote:
> 
>> It is overkill to to that, just make the frames and maximize/fullscreen them
>> as they where when the desktop was saved.  It is a mistake to try to be a
>> window manager and force frames to exact positions.
> 
> What you call a mistake, I call the main thing that would make the
> save&restore feature worth using for me. I don't want frames restored
> if they are not at the same place they were before.

This pertains just to maximized/fullscreen/minimized frames.  The best strategy 
(for X anyway) is to create non-maximized/non-fullscreen frames where there 
where saved and let the window manager move them if it so wishes.  

Maximized/fullscreen frames should be created with the corresponding frame 
parameter, and don't try to first create them where there where in their 
un-maximized/un-fullscreen state and then make them maximized/fullscreen.  I 
don't know if it is different on W32, but maximized/fullscreen is not about 
setting some size, it is about setting a state.  The window manager sets the 
size.  So if I saved a maximized frame on a small monitor, it will be maximized 
when i restore the desktop on a larger monitor.  The window manager takes care 
of it, Emacs does not need to emulate a window manager.

        Jan D.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]