Signed-off-by: Chris Michael <cp.michael@samsung.com>
{
struct wl_keyboard *keyboard = grab->keyboard;
struct wl_resource *resource;
- uint32_t serial;
resource = keyboard->focus_resource;
if (resource)
{
- struct wl_display *disp;
+ uint32_t serial;
- disp = wl_client_get_display(wl_resource_get_client(resource));
- serial = wl_display_next_serial(disp);
+ serial = wl_display_next_serial(_e_wl_comp->wl.display);
wl_keyboard_send_key(resource, serial, timestamp, key, state);
}
}