-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wayland: Fix seat resource release logic
The existing logic leads to leaks in several scenarios: 1. Neither `wl_pointer_destroy` nor `wl_touch_destroy` are ever called, so pointer and touch objects are never released. 2. The logic for `wl_keyboard_destroy` is not solid as seats can lose the `WL_SEAT_CAPABILITY_POINTER` capability without losing the `WL_SEAT_CAPABILITY_KEYBOARD`. Thus it's possible for the calls to `wl_seat_get_keyboard` and `wl_keyboard_destroy` to be unbalanced. 3. Those resources were not released in the renderer destructor. This reworks the seat resource release logic in a systematic way to ensure that seat resources are always released.
- Loading branch information
Showing
2 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters