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

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

FIX: incorrect frame positioning with fullscreen arguments under X


From: Zoran Rilak
Subject: FIX: incorrect frame positioning with fullscreen arguments under X
Date: Mon, 22 Oct 2007 18:38:15 -0400

Hi there,

this is a bugfix for a problem that has been bugging me for some time
now.

If you try running Emacs in fullheight mode, positioned relative to one
of the two East corners, e.g.:

$ emacs --fullheight --geometry -0+0

the correct behavior of the frame would be to align itself along the
right side of the screen, but it sticks to the left.

  The cause is in function frame.c:x_figure_window_size, where the value
for window_prompting variable is meticulously computed, only to be
promptly destroyed a few lines after:
 
      window_prompting = USPosition | PPosition;

this line loses the state of the XNegative and YNegative flags which are
needed later on to determine the proper window gravity.  Adding the
flags like so:

      window_prompting = USPosition | PPosition | XNegative | YNegative;

solves the frame positioning problem.

P.S. I found this in a relatively recent Emacs 23.0.0 from repos.  Sorry
for not submitting a regular patch or diff, but the frame.c file is a
mess at this point...

Cheers,

---
Zoran Rilak
Percepts and Concepts
Laboratory
Psychology Building
1101 E 10th Street
47405 Bloomington, IN
United States of America

                e-mail: 
                  site: 
                Jabber: 
               PGP Key: 

mailto:zoran.rilak@gmail.com
http://tesla.rcub.bg.ac.yu/~bruce
wayward@jabber.org/Gaim
0x2EF796E2 at Veridis

Please don't send me any attachments in Microsoft proprietary formats.
Here's why.
Preferred attachment types: JPG, SVG, UTF-8 text, PS, PDF, HTML, XML,
ODF.





reply via email to

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