[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: x-popup-menu pops up at funny positions
From: |
Jan D. |
Subject: |
Re: x-popup-menu pops up at funny positions |
Date: |
Sun, 5 Jan 2003 23:05:19 +0100 |
Because it did not in fact read the current position. It read
the position of the inner window in coordinates that are valid
for the parent window. Now, if the parent window is the root
window, then it reads the current position. But in all other
cases it does not.
Instead of just deleting that code, can you replace it with code
that does the right job?
I did that. The additions to x/y before assigning them to dummy.root_x/y.
One could replace parent_desc with the root window, but it
seemd pointless to do a query to the X server when Emacs
has all the information already and a simple addition finds
the current position.
I am not sure it is always up to date. Could you check?
I will check some more on different window managers, but so far
it has been up to date. I studied the code and I believe it keeps
things up to date.
Replacing mouse_position_hook with a simple XQueryPointer
cures this.
Could you send the diff to do that?
(Or just install it?)
I'll install it when I done the checking (and it still is OK :-)
Jan D.
- x-popup-menu pops up at funny positions, Jan D., 2003/01/03
- Re: x-popup-menu pops up at funny positions, Jan D., 2003/01/03
- Re: x-popup-menu pops up at funny positions, Richard Stallman, 2003/01/03
- Re: x-popup-menu pops up at funny positions, Jan D., 2003/01/04
- Re: x-popup-menu pops up at funny positions, Richard Stallman, 2003/01/05
- Re: x-popup-menu pops up at funny positions,
Jan D. <=
- Re: x-popup-menu pops up at funny positions, Jan D., 2003/01/05
- Re: x-popup-menu pops up at funny positions, Richard Stallman, 2003/01/07
- Re: x-popup-menu pops up at funny positions, Jan D., 2003/01/07
- Re: x-popup-menu pops up at funny positions, Richard Stallman, 2003/01/07
- Re: x-popup-menu pops up at funny positions, Jan D., 2003/01/07
- Re: x-popup-menu pops up at funny positions, Richard Stallman, 2003/01/08
- Re: x-popup-menu pops up at funny positions, Jan D., 2003/01/08