compositor-x11: Handle keyboard focus correctly so we avoid stuck modifiers
This commit is contained in:
@@ -113,3 +113,11 @@ wl_array_add(struct wl_array *array, int size)
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_array_copy(struct wl_array *array, struct wl_array *source)
|
||||
{
|
||||
array->size = 0;
|
||||
wl_array_add(array, source->size);
|
||||
memcpy(array->data, source->data, source->size);
|
||||
}
|
||||
|
||||
@@ -148,6 +148,7 @@ struct wl_array {
|
||||
void wl_array_init(struct wl_array *array);
|
||||
void wl_array_release(struct wl_array *array);
|
||||
void *wl_array_add(struct wl_array *array, int size);
|
||||
void wl_array_copy(struct wl_array *array, struct wl_array *source);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user