emacs-devel
[Top][All Lists]
Advanced

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

Mouse information in xterm.


From: Ergus
Subject: Mouse information in xterm.
Date: Mon, 14 Sep 2020 13:38:16 +0200

Hi I have a question that I am not sure if this is a bug or a feature.

I have been playing with x-popup-menu today and I noticed that in
terminal, when we pass t as the first parameter the popup appears in
position (0, 0) which is wrong.

I debugged the C code and it seems that this position is expected to be
computed in x_popup_menu_1 calling:

mouse_position_hook which is a pointer to term_mouse_position and the
vales are taken there from last_mouse_x and last_mouse_y.

The issue is that those values are updated only in term_mouse_movement
which is called in handle_one_term_event but that function never
triggers my gdb.

Is this somehow intended and a limitation of the terminal interface??



reply via email to

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