[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting geometry for new frame
From: |
Pascal J. Bourguignon |
Subject: |
Re: setting geometry for new frame |
Date: |
Fri, 23 Oct 2009 13:24:16 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) |
"mandar.mitra" <mandar.mitra@gmail.com> writes:
> Hello,
>
> I've been trying to use make-frame to create a new frame at a specific
> location as follows:
>
> (make-frame '((left . +400) (top . +0)))
>
> But when I type this in the scratch buffer, and do an eval, the newly
> created frame doesn't follow my left and top specifications. Every
> time, the new frame seems to be created at roughly the same location
> relative to the initial frame.
>
> Is there some way to position a newly created frame at a specific
> location (as is done using the -geometry option of various X
> commands)?
1- The window manager has its say positionning new windows. Are you
sure it's not your window manager that overrides the frame
position?
2- The function make-frame may have been advised, and some advice may
modify the positionning parameters. Evaluate:
(append (ad-get-enabled-advices 'make-frame 'before)
(ad-get-enabled-advices 'make-frame 'around))
3- Parameters may also come from the default-frame-alist variable
and form the X resource file, but those passed to the make-frame
function should shadow them.
4- Finally, you may position the frame after the fact with
set-frame-position.
--
__Pascal Bourguignon__