mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
unify container destroy functions
This commit is contained in:
parent
b4c5f79725
commit
09d448ea2d
5 changed files with 40 additions and 41 deletions
|
|
@ -338,12 +338,12 @@ void output_damage_whole_view(struct sway_output *output,
|
|||
static void damage_handle_destroy(struct wl_listener *listener, void *data) {
|
||||
struct sway_output *output =
|
||||
wl_container_of(listener, output, damage_destroy);
|
||||
container_output_destroy(output->swayc);
|
||||
container_destroy(output->swayc);
|
||||
}
|
||||
|
||||
static void handle_destroy(struct wl_listener *listener, void *data) {
|
||||
struct sway_output *output = wl_container_of(listener, output, destroy);
|
||||
container_output_destroy(output->swayc);
|
||||
container_destroy(output->swayc);
|
||||
}
|
||||
|
||||
static void handle_mode(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue