mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-04 20:55:58 +01:00
Remove destroy event in screenshooter for now
This commit is contained in:
parent
0e066f0d76
commit
bdb6e0b84c
2 changed files with 0 additions and 6 deletions
|
@ -9,10 +9,6 @@ struct wlr_screenshooter {
|
|||
|
||||
struct wl_listener display_destroy;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
|
|
|
@ -164,7 +164,6 @@ void wlr_screenshooter_destroy(struct wlr_screenshooter *screenshooter) {
|
|||
if (!screenshooter) {
|
||||
return;
|
||||
}
|
||||
wl_signal_emit(&screenshooter->events.destroy, screenshooter);
|
||||
wl_list_remove(&screenshooter->display_destroy.link);
|
||||
struct wlr_screenshot *screenshot, *tmp;
|
||||
wl_list_for_each_safe(screenshot, tmp, &screenshooter->screenshots, link) {
|
||||
|
@ -190,7 +189,6 @@ struct wlr_screenshooter *wlr_screenshooter_create(struct wl_display *display,
|
|||
screenshooter->renderer = renderer;
|
||||
|
||||
wl_list_init(&screenshooter->screenshots);
|
||||
wl_signal_init(&screenshooter->events.destroy);
|
||||
|
||||
screenshooter->display_destroy.notify = handle_display_destroy;
|
||||
wl_display_add_destroy_listener(display, &screenshooter->display_destroy);
|
||||
|
|
Loading…
Reference in a new issue