emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in CVS Emacs frame positioning under X


From: Jan Djärv
Subject: Re: Bug in CVS Emacs frame positioning under X
Date: Mon, 27 Mar 2006 08:48:20 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)

Richard Stallman wrote:
    The symptom is that not all of the frames end up positioned at x/y
    coordinates 300/300.  Some frames are positioned at 300+A/300+B, where
    A is the width of the left border drawn by the window manager and B is
    the height of the top border drawn by the window manager.  Some frames
    even end up at 400/400 !

    I think I have a patch to src/xterm.c that may fix this.  I will try
    it and let you know if the patch works.

Please also tell which window managers you tested it on.


This resembles a problem that I struggled with about 10 years ago.
It might be the same one.

I found that various cases of window positioning were a little bit
off.  So I would fix the case that failed, and then some other case
started to fail.  Eventually I gave up.

That is the basic problem. Each window manager does window moves differently, and the fact that events may come at different times complicates things. I now try to make it work on a lot of window managers, but I gave up on "all".


With better records, perhaps I could have determined the pattern of
what failed and what succeeded, and figured out an overall solution.
We should start keeping such records now, in case the patch
which fixes this case breaks another case.


The patch must be tested on at least 10 or so of the most common window managers. Usually it is difficult to make a patch that doesn't break some other window manager.

        Jan D.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]