diff options
-rw-r--r-- | backend/rdp/output.c | 3 | ||||
-rw-r--r-- | types/wlr_output.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/backend/rdp/output.c b/backend/rdp/output.c index 5e20dda4..0ca886f0 100644 --- a/backend/rdp/output.c +++ b/backend/rdp/output.c @@ -79,6 +79,9 @@ static bool output_attach_render(struct wlr_output *wlr_output, static bool rfx_swap_buffers( struct wlr_rdp_output *output, pixman_region32_t *damage) { + if (!pixman_region32_not_empty(damage)) { + return true; + } struct wlr_rdp_peer_context *context = output->context; freerdp_peer *peer = context->peer; rdpUpdate *update = peer->update; diff --git a/types/wlr_output.c b/types/wlr_output.c index 7c3e39a7..27f5c3ff 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -470,6 +470,7 @@ bool wlr_output_commit(struct wlr_output *output) { output->frame_pending = true; output->needs_frame = false; output_state_clear(&output->pending); + pixman_region32_clear(&output->damage); return true; } |