From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zoran Rilak Newsgroups: gmane.emacs.bugs Subject: FIX: incorrect frame positioning with fullscreen arguments under X Date: Mon, 22 Oct 2007 18:38:15 -0400 Message-ID: <1193092695.14148.0.camel@flipbox> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193124656 19400 80.91.229.12 (23 Oct 2007 07:30:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2007 07:30:56 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 23 09:30:55 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IkEDx-0008Sc-CN for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2007 09:30:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkEDp-0007C0-CS for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2007 03:30:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ik5ul-0000br-F9 for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2007 18:38:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ik5uj-0000aJ-MK for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2007 18:38:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ik5uj-0000a7-Hc for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2007 18:38:25 -0400 Original-Received: from py-out-1112.google.com ([64.233.166.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ik5uj-0001nE-8R for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2007 18:38:25 -0400 Original-Received: by py-out-1112.google.com with SMTP id a73so3204918pye for ; Mon, 22 Oct 2007 15:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=OVArwqBFLQD8AXrwzYK0dY24ZZOE81KvCk12AN/aHGY=; b=AI+pRokkGNO874ALZLHwRrXZYYkC5dL2NTbwM0jZKD4cwhd3kpeC1jhn+RWOEJ2BV0r6fgpGVWALw/PXNzIEvkWSlTeD9dic7+NHEOiRNmQ43/wZfxOcz/30MHAJlmjd/KITsqVTXjr/b9I20NpZ2TXnPNkmNBN1Dad6zHB4CEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=auoUKVd2lRt9ZOfYICwa4oWI7Brk4uA/XoKUBIAjDHqtYEj9817kn7Nxg4tFL4MPzSMU5PE9ARZT4aN6XWUapEKdwdRH8AJyJA4T14NUPxZqYUPoh0L3dvMLP1kYWAprMlOMVFyQhh3JJr0LGwIN8uwO7pN/qEilURRsJ92lgRE= Original-Received: by 10.65.135.19 with SMTP id m19mr10685559qbn.1193092702283; Mon, 22 Oct 2007 15:38:22 -0700 (PDT) Original-Received: from ?129.79.193.6? ( [129.79.193.6]) by mx.google.com with ESMTPS id 22sm3349207nzn.2007.10.22.15.38.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Oct 2007 15:38:21 -0700 (PDT) X-Mailer: Evolution 2.12.0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 23 Oct 2007 03:30:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16806 Archived-At: 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.