mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 07:35:57 +01:00
b5491df0c0
We teardown all existing screencast_instances using the removed output by destroying the frame, removing all timers and then marking the instance as ready for teardown so we can destroy it after the last connected session is closed. Any wlr_screencopy_frame_v1 has to be destroyed before the connected output can be removed. Otherwise wlr_screencopy_frame_v1_destroy segfaults the whole program. To ensure this we will make all frame callbacks safe to be triggered for a previous destroyed frame.
9 lines
240 B
C
9 lines
240 B
C
#ifndef SCREENCAST_H
|
|
#define SCREENCAST_H
|
|
|
|
#include "screencast_common.h"
|
|
|
|
void xdpw_screencast_instance_destroy(struct xdpw_screencast_instance *cast);
|
|
void xdpw_screencast_instance_teardown(struct xdpw_screencast_instance *cast);
|
|
|
|
#endif
|