emacs-devel
[Top][All Lists]
Advanced

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

RE: address@hidden: RE: set-frame-position - is it a bug?]


From: Drew Adams
Subject: RE: address@hidden: RE: set-frame-position - is it a bug?]
Date: Wed, 12 Jul 2006 09:25:37 -0700

Yes, I would guess that it is Windows specific, since Windows uses a
different menu bar (IIUC).

    I can't reproduce this.  Maybe this is a Windoze-only bug, or it's
    fixed in the current CVS.

    (On GNU/Linux, there is a different frame movement bug, which was
    previously discussed on this list, that's not caused by Emacs but by
    the Metacity window manager [apparently the latest version of Metacity
    doesn't like programs to specify window positions; other window
    managers work OK].)

    >     This bug was apparently never fixed. To reproduce, simply
    >     resize a frame horizontally so that the menu-bar wraps,
    >     then change the 'left frame parameter.
    >
    >     (setq left-pos (cdr (assq 'left (frame-parameters))))
    >     (modify-frame-parameters (selected-frame)
    >       (list (cons 'left (+ 30 left-pos))))
    >
    >     The frame moves down, as well as right.
    >
    >         Sent: Friday, August 05, 2005 7:39 AM
    >         To: address@hidden
    >         Cc: Emacs-Devel
    >         Subject: RE: set-frame-position - is it a bug?
    >
    >             the intention of the following code
    >               (setq fpx (cdr (assoc 'left (frame-parameters))))
    >               (setq fpy (cdr (assoc 'top  (frame-parameters))))
    >               (setq fpx (+ 1 fpx))
    >               (set-frame-position (next-frame) fpx fpy)
    >             is to move the frame honizontally 1 pixel right;
    >             but as a side-effect I get a vertical move as well.
    >             Is there something wrong with my code?






reply via email to

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