mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
minor fix for region sharing
This commit is contained in:
parent
2fa7e345a4
commit
74128d2a97
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ static const struct hyprland_toplevel_export_frame_v1_listener hyprland_frame_li
|
||||||
.damage = hyprland_frame_damage};
|
.damage = hyprland_frame_damage};
|
||||||
|
|
||||||
void xdpw_wlr_register_cb(struct xdpw_screencast_instance *cast) {
|
void xdpw_wlr_register_cb(struct xdpw_screencast_instance *cast) {
|
||||||
if (cast->target.x != -1 && cast->target.y != -1 && cast->target.w != -1 && cast->target.h != -1 && cast->target.window_handle == -1) {
|
if (cast->target.x != -1 && cast->target.y != -1 && cast->target.w != -1 && cast->target.h != -1 && cast->target.window_handle <= 0) {
|
||||||
// capture region
|
// capture region
|
||||||
cast->frame_callback = zwlr_screencopy_manager_v1_capture_output_region(
|
cast->frame_callback = zwlr_screencopy_manager_v1_capture_output_region(
|
||||||
cast->ctx->screencopy_manager, cast->with_cursor, cast->target.output->output, cast->target.x,
|
cast->ctx->screencopy_manager, cast->with_cursor, cast->target.output->output, cast->target.x,
|
||||||
|
|
Loading…
Reference in a new issue