mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
wlr_screencast: call wlr_remove_output only if global is an output
This commit is contained in:
parent
d83431335d
commit
3ca286b0b4
1 changed files with 5 additions and 2 deletions
|
@ -594,8 +594,11 @@ static void wlr_registry_handle_add(void *data, struct wl_registry *reg,
|
|||
|
||||
static void wlr_registry_handle_remove(void *data, struct wl_registry *reg,
|
||||
uint32_t id) {
|
||||
wlr_remove_output(
|
||||
xdpw_wlr_output_find((struct xdpw_screencast_context *)data, NULL, id));
|
||||
struct xdpw_screencast_context *ctx = data;
|
||||
struct xdpw_wlr_output *output = xdpw_wlr_output_find(ctx, NULL, id);
|
||||
if (output) {
|
||||
wlr_remove_output(output);
|
||||
}
|
||||
}
|
||||
|
||||
static const struct wl_registry_listener wlr_registry_listener = {
|
||||
|
|
Loading…
Reference in a new issue