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: Fri, 23 Jun 2006 19:43:37 +0200

* Eli Zaretskii (2006-06-23) writes:

>> From: Ralf Angeli <address@hidden>
>> Date: Mon, 12 Jun 2006 23:25:46 +0200
>> 
>> It turned out that `x_set_offset' was called with `f->left_pos' and
>> `f->top_pos' as arguments which have to be updated after the frame was
>> created.  The following patch works for me:
[...]
> Unfortunately, this patch has an unpleasant effect on my system:
> "emacs -q" comes up with the mode line and the minibuffer obscured by
> the task bar

Yes, I noticed this too (and mentioned it when sending the patch).  I
was trying various things debugging the problem but haven't succeeded
in solving it.

With the patch applied you can see another interesting effect.  If you
change the default face to a smaller font size and create new frames
with `C-x 5 2', those will come up with a size matching the default
font size before customization and instantly shrink to a size matching
the new font size.  This can be circumvented by using SW_HIDE instead
of SW_SHOW in the ShowWindow call (as it is being done without the
patch) but you will still get wrong window placements because new
frames are also still created with the wrong size (with SW_HIDE one
just does not see it).

I am currently out of wits with respect to fixing the patch and
getting reasonable placement of newly created frames.

-- 
Ralf




reply via email to

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