From: Zoran Rilak <zoran.rilak@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: FIX: incorrect frame positioning with fullscreen arguments under X
Date: Mon, 22 Oct 2007 18:38:15 -0400 [thread overview]
Message-ID: <1193092695.14148.0.camel@flipbox> (raw)
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 other threads:[~2007-10-22 22:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1193092695.14148.0.camel@flipbox \
--to=zoran.rilak@gmail.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).