diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index 3426ff44..710e3a8f 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -491,7 +491,9 @@ static void produce_command(Test *test) .top = 0, .bottom = (test->target_surface == 0 ? test_height : SURF_HEIGHT) }; - qxl_worker->update_area(qxl_worker, test->target_surface, &rect, NULL, 0, 1); + if (rect.right > 0 && rect.bottom > 0) { + qxl_worker->update_area(qxl_worker, test->target_surface, &rect, NULL, 0, 1); + } break; }