emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: startup frame position


From: Ralf Angeli
Subject: Re: startup frame position
Date: Sun, 11 Jun 2006 23:51:02 +0200

* Stephan Hennig (2006-05-24) writes:

> Emacs' frame appears in the top left corner of the screen. On Windows OS
> this is ok when the OS's symbol panel (Symbolleiste) is located at the
> bottom of the screen. If the symbol panel is located at the top of the
> screen part of Emacs' frame -- the title panel (Titelleiste) --  gets
> hidden behind the symbol panel so that you can't grab and move the frame
> on the desktop.

FWIW, I find it at least annoying that Emacs under Windows always
creates frames in the top left corner.  I managed to let Windows
position new frames by modifying the calls to `CreateWindow' and
`ShowWindow' in `w32_createwindow'.  For the `CreateWindow' call I
used `CW_USEDEFAULT' instead of `f->left_pos' as third argument and
`SW_SHOW' instead of `f->top_pos' as fourth argument.  For the
`ShowWindow' call I used `SW_SHOW' instead of `SW_HIDE' as second
argument.

Unfortunately newly created frames don't stay at the position they are
created at but instantly move to the top left corner.  I could not
find out where this happens.  I suspect that `x_set_offset' is called
somewhere with values of 0 for both offsets, but I could not find the
respective call.

-- 
Ralf





reply via email to

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