all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Subject: Program-specified positions ignored?
Date: Sat, 14 Sep 2002 21:51:06 -0400	[thread overview]
Message-ID: <E17qOZ0-0000Ob-00@fencepost.gnu.org> (raw)

I looked at the bug report below, and it seems that the specified
positions are not being used at all in the toolkit version, when the
user-position parameter is nil.  (This corresponds to the USPosition
flag for Xlib.)  Here is the code which does that?

      if (window_prompting & USPosition)
	sprintf (shell_position, "=%dx%d%c%d%c%d",
		 PIXEL_WIDTH (f) + extra_borders, 
		 PIXEL_HEIGHT (f) + menubar_size + extra_borders,
		 (xneg ? '-' : '+'), left,
		 (yneg ? '-' : '+'), top);
      else
	sprintf (shell_position, "=%dx%d",
		 PIXEL_WIDTH (f) + extra_borders, 
		 PIXEL_HEIGHT (f) + menubar_size + extra_borders);
    }

    len = strlen (shell_position) + 1;
    /* We don't free this because we don't know whether
       it is safe to free it while the frame exists.
       It isn't worth the trouble of arranging to free it
       when the frame is deleted.  */
    tem = (char *) xmalloc (len);
    strncpy (tem, shell_position, len);
    XtSetArg (al[ac], XtNgeometry, tem); ac++;
    XtSetValues (shell_widget, al, ac);

I am pretty sure that the reason for this is that including
program-specified positions in XtNgeometry would override the window
manager, which is wrong.  But if that is the wrong way to pass the
program-specified positions to Xt, what is the right way?


X-Sender: jwj@alvie-mail.lanl.gov
To: bug-gnu-emacs@gnu.org
From: "Joseph W. Jackson" <jwj@lanl.gov>
Subject: Emacs 21.2 Frame Parameters
Sender: bug-gnu-emacs-admin@gnu.org
Date: Tue, 06 Aug 2002 14:48:29 -0600

The more I dig into this the more I believe it is a bug.

I recently upgraded from Redhat Linux 7.2 to 7.3.  As part of the update, 
my emacs changed from version 20.7 to Emacs 21.2 and I now find that 
several of my frame customizations don't work.  In particular, the 
frame-parameters "top" and "left" get ignored.

For example:
In version 20.7 I used the following command to create a second frame 
positioned all the way to the right of my screen:
        (make-frame '((height . 70) (width .  93) (top . 0) (left .  581)))

under emacs 21.2.1 the command above produces a frame of height=70 and 
width=93 but the window is positioned at top=0 and left=0.  I get an 
identical result when I try to set "top" or "left" values for the variables 
"special-display-frame-alist" and "default-frame-alist"

Something changed between the releases and, as of yet, I am unable to work 
around the problem.



"No Single Raindrop Believes It Is Responsible For The Flood"  - Despair.com


_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

             reply	other threads:[~2002-09-15  1:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-15  1:51 Richard Stallman [this message]
2002-10-03 18:58 ` Program-specified positions ignored? Jan D.
2002-10-04 22:09   ` Richard Stallman
2002-10-05 23:47     ` Jan D.
  -- strict thread matches above, loose matches on Subject: below --
2002-10-03 20:06 Jan D.
2002-10-04 15:46 ` Richard Stallman
2002-10-04 16:01   ` Stefan Monnier
2002-10-05 16:33     ` Richard Stallman
2002-10-05 16:55       ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E17qOZ0-0000Ob-00@fencepost.gnu.org \
    --to=rms@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.