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.
This commit is contained in:
Matthias Clasen 2009-11-27 18:44:31 -05:00
parent 0ef8f52567
commit 36ca3fd5e9

View File

@ -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;
}