GNU bug report logs - #65840
29.1; desktop-load moves frames to the right and down

Previous Next

Package: emacs;

Reported by: tanzer <at> gg32.com

Date: Sat, 9 Sep 2023 12:34:01 UTC

Severity: normal

Found in version 29.1

Full log


Message #11 received at 65840 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 65840 <at> debbugs.gnu.org, tanzer <at> gg32.com
Subject: Re: bug#65840: 29.1; desktop-load moves frames to the right and down
Date: Sat, 09 Sep 2023 21:35:01 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> You are aware, I hope, that on X and similar GUI systems, the
> coordinates of the frames we request from the window-manager are
> advisory: the WM doesn't have to adhere to what we request.  I'm not
> sure what you see is not a manifestation of that.
>
> Po Lu, can you chime in, please?

Thanks, but I'm not well versed in Mac OS window management.  I would
begin an investigation into this behavior by calling:

  (set-frame-position f 10 10)

waiting for a MOVE_FRAME_EVENT to arrive:

      emacsframe->left_pos = (NSMinX (r)
			      - NS_PARENT_WINDOW_LEFT_POS (emacsframe));
      emacsframe->top_pos = (NS_PARENT_WINDOW_TOP_POS (emacsframe)
			     - NSMaxY (r));

and attempting to establish which factors influence both the position
set by ns_set_offset and that returned within the consequent
MOVE_FRAME_EVENT.  With that information at hand, it should become
possible to then devise a method of compensating for such factors, so as
to guarantee that the frame position through `set-frame-position' is
reflected faithfully within the frame's `left' and `top' properties,
insofar as the window manager elects to respect said position.




This bug report was last modified 1 year and 277 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.