compositor: Don't run keybindings if we have a key grab

This commit is contained in:
Kristian Høgsberg 2012-02-19 18:50:55 -05:00
parent ec286eb8e8
commit afa264c6b6

View File

@ -1444,7 +1444,9 @@ notify_key(struct wl_input_device *device,
weston_compositor_idle_release(compositor);
}
weston_compositor_run_binding(compositor, wd, time, key, 0, state);
if (device->keyboard_grab == &device->default_keyboard_grab)
weston_compositor_run_binding(compositor, wd,
time, key, 0, state);
update_modifier_state(wd, key, state);
end = device->keys.data + device->keys.size;