Commit 324aa39c authored by Matthias Clasen's avatar Matthias Clasen
Browse files

gdk: Use constructor for grab broken

parent d6c5ecbe
......@@ -514,13 +514,11 @@ generate_grab_broken_event (GdkDisplay *display,
{
GdkEvent *event;
event = gdk_event_new (GDK_GRAB_BROKEN);
event->any.surface = g_object_ref (surface);
event->any.send_event = FALSE;
event->grab_broken.implicit = implicit;
event->grab_broken.grab_surface = grab_surface;
gdk_event_set_device (event, device);
event->grab_broken.keyboard = (gdk_device_get_source (device) == GDK_SOURCE_KEYBOARD) ? TRUE : FALSE;
event = gdk_event_grab_broken_new (surface,
device,
device,
grab_surface,
implicit);
gdk_display_put_event_nocopy (display, event);
}
......
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