compositor: Don't crash when receiving kb focus with no surface

dev
Kristian Høgsberg 13 years ago
parent 109a00700e
commit f59da399d8
  1. 2
      compositor/compositor.c

@ -1590,7 +1590,7 @@ notify_keyboard_focus(struct wl_input_device *device,
update_modifier_state(wd, *k, 1); update_modifier_state(wd, *k, 1);
} }
if (es->surface.resource.client) if (es && es->surface.resource.client)
wl_input_device_set_keyboard_focus(&wd->input_device, wl_input_device_set_keyboard_focus(&wd->input_device,
&es->surface, time); &es->surface, time);
} else { } else {

Loading…
Cancel
Save