Commit 1003f36f authored by Po Lu's avatar Po Lu
Browse files

Minor fixes to last change

* src/pgtkselect.c (pgtk_get_window_property): Add 1 to xdata
when it is GdkAtom.
* src/pgtkterm.c (drag_leave): Initialize inev.ie.
parent 5cbe50a4
Pipeline #18737 passed with stages
in 39 minutes and 42 seconds
......@@ -1108,7 +1108,7 @@ pgtk_get_window_property (GdkWindow *window, unsigned char **data_ret,
eassert (actual_format == 32);
length = length / sizeof (GdkAtom);
xdata = xmalloc (sizeof (GdkAtom) * length);
xdata = xmalloc (sizeof (GdkAtom) * length + 1);
memcpy (xdata, data, 1 + length * sizeof (GdkAtom));
g_free (data);
......
......@@ -6259,6 +6259,8 @@ drag_leave (GtkWidget *widget, GdkDragContext *context,
g_object_unref);
}
EVENT_INIT (inev.ie);
inev.ie.kind = DRAG_N_DROP_EVENT;
inev.ie.modifiers = 0;
inev.ie.arg = Qnil;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment