forked from AuroraMiddleware/gtk
Copy event axes for double/triple click events in gdk_event_copy()
Button event axes for double/triple click events are freed by gdk_event_free(), so copy them to avoid an invalid free when releasing a copied event.
This commit is contained in:
parent
6c4196e9e4
commit
651410fa2a
@ -555,6 +555,8 @@ gdk_event_copy (const GdkEvent *event)
|
||||
break;
|
||||
|
||||
case GDK_BUTTON_PRESS:
|
||||
case GDK_2BUTTON_PRESS:
|
||||
case GDK_3BUTTON_PRESS:
|
||||
case GDK_BUTTON_RELEASE:
|
||||
if (event->button.axes)
|
||||
new_event->button.axes = g_memdup (event->button.axes,
|
||||
|
Loading…
Reference in New Issue
Block a user