aboutsummaryrefslogtreecommitdiff
path: root/backend/rdp/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/rdp/output.c')
-rw-r--r--backend/rdp/output.c3
1 files changed, 3 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;