* src/xterm.c (handle_one_xevent): Fix translation of button events.
This commit is contained in:
parent
16702f183f
commit
422ad3a01f
1 changed files with 2 additions and 1 deletions
|
@ -11670,7 +11670,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
if (popup_activated ())
|
||||
{
|
||||
use_copy = true;
|
||||
copy.xbutton.type = ButtonRelease;
|
||||
copy.xbutton.type = (xev->evtype == XI_ButtonPress
|
||||
? ButtonPress : ButtonRelease);
|
||||
copy.xbutton.serial = xev->serial;
|
||||
copy.xbutton.send_event = xev->send_event;
|
||||
copy.xbutton.display = dpyinfo->display;
|
||||
|
|
Loading…
Add table
Reference in a new issue