unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* FIX: incorrect frame positioning with fullscreen arguments under X
@ 2007-10-22 22:38 Zoran Rilak
  0 siblings, 0 replies; only message in thread
From: Zoran Rilak @ 2007-10-22 22:38 UTC (permalink / raw)
  To: bug-gnu-emacs

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.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-22 22:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-22 22:38 FIX: incorrect frame positioning with fullscreen arguments under X Zoran Rilak

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).