Commit 36ca3fd5 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Add a missing include

memset() is used in gdk/x11/gdkinput-xfree.c but string.h is not included.
Patch by Vincent Untz, bug 597026.
parent 0ef8f525
......@@ -18,6 +18,7 @@
*/
#include "config.h"
#include <string.h>
#include "gdkinputprivate.h"
#include "gdkdisplay-x11.h"
#include "gdkalias.h"
......@@ -372,7 +373,7 @@ _gdk_input_grab_pointer (GdkWindow *window,
((gdkdev->button_count != 0) || need_ungrab))
{
XUngrabDevice (display_impl->xdisplay, gdkdev->xdevice, time);
memset(gdkdev->button_state, 0, sizeof (gdkdev->button_state));
memset (gdkdev->button_state, 0, sizeof (gdkdev->button_state));
gdkdev->button_count = 0;
}
......
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