mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 22:35:59 +01:00
wlr_screencast: remove wl_display_dispatch
wl_display_dispatch is unnecessary and can cause hangs, if no new requests are queued
This commit is contained in:
parent
4af11c7a4f
commit
5e4edae701
1 changed files with 0 additions and 2 deletions
|
@ -630,14 +630,12 @@ int xdpw_wlr_screencopy_init(struct xdpw_state *state) {
|
||||||
ctx->registry = wl_display_get_registry(state->wl_display);
|
ctx->registry = wl_display_get_registry(state->wl_display);
|
||||||
wl_registry_add_listener(ctx->registry, &wlr_registry_listener, ctx);
|
wl_registry_add_listener(ctx->registry, &wlr_registry_listener, ctx);
|
||||||
|
|
||||||
wl_display_dispatch(state->wl_display);
|
|
||||||
wl_display_roundtrip(state->wl_display);
|
wl_display_roundtrip(state->wl_display);
|
||||||
|
|
||||||
logprint(DEBUG, "wayland: registry listeners run");
|
logprint(DEBUG, "wayland: registry listeners run");
|
||||||
|
|
||||||
wlr_init_xdg_outputs(ctx);
|
wlr_init_xdg_outputs(ctx);
|
||||||
|
|
||||||
wl_display_dispatch(state->wl_display);
|
|
||||||
wl_display_roundtrip(state->wl_display);
|
wl_display_roundtrip(state->wl_display);
|
||||||
|
|
||||||
logprint(DEBUG, "wayland: xdg output listeners run");
|
logprint(DEBUG, "wayland: xdg output listeners run");
|
||||||
|
|
Loading…
Reference in a new issue