mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
This cast corrupted the first (and only the first) mouse event returned
in testcurs, such that it always read as position 0, 0, double-click. Introduced in 2.8 (argh).
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
RCSID("$Id: x11.c,v 1.31 2006/11/12 10:26:14 wmcbrine Exp $");
|
||||
RCSID("$Id: x11.c,v 1.32 2006/11/12 23:55:17 wmcbrine Exp $");
|
||||
|
||||
#ifndef XPOINTER_TYPEDEFED
|
||||
typedef char * XPointer;
|
||||
@@ -2181,7 +2181,7 @@ static void Button(Widget w, XEvent *event, String *params, Cardinal *nparams)
|
||||
|
||||
MOUSE_LOG(("\nButtonPress\n"));
|
||||
|
||||
if ((int)(event->xbutton.time - last_button_press_time) <
|
||||
if ((event->xbutton.time - last_button_press_time) <
|
||||
xc_app_data.doubleClickPeriod)
|
||||
{
|
||||
MOUSE_X_POS = save_mouse_status.x;
|
||||
|
||||
Reference in New Issue
Block a user