mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-19 06:59:51 -05:00
compositor-x11: Handle keyboard focus correctly so we avoid stuck modifiers
This commit is contained in:
parent
ac5c5e7853
commit
3ba4858c4b
6 changed files with 80 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue