mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-05 16:25:59 +01:00
wlr_screencopy: make sure xdg_output_manager is supported
This commit is contained in:
parent
ebb50839a5
commit
e89c58c731
1 changed files with 7 additions and 0 deletions
|
@ -634,6 +634,13 @@ int xdpw_wlr_screencopy_init(struct xdpw_state *state) {
|
|||
|
||||
logprint(DEBUG, "wayland: registry listeners run");
|
||||
|
||||
// make sure our wlroots supports xdg_output_manager
|
||||
if (!ctx->xdg_output_manager) {
|
||||
logprint(ERROR, "Compositor doesn't support %s!",
|
||||
zxdg_output_manager_v1_interface.name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
wlr_init_xdg_outputs(ctx);
|
||||
|
||||
wl_display_roundtrip(state->wl_display);
|
||||
|
|
Loading…
Reference in a new issue