compositor: Update only existing backgrounds in output_move

This commit is contained in:
Benjamin Franzke
2011-03-16 13:48:42 +01:00
parent 9c26ff3507
commit 264b3f9d84
+5 -3
View File
@@ -1327,9 +1327,11 @@ wlsc_output_move(struct wlsc_output *output, int x, int y)
output->x = x;
output->y = y;
output->background->x = x;
output->background->y = y;
wlsc_surface_update_matrix(output->background);
if (output->background) {
output->background->x = x;
output->background->y = y;
wlsc_surface_update_matrix(output->background);
}
pixman_region32_init(&output->previous_damage_region);