compsitor: Put background surface in the big surface list

dev
Kristian Høgsberg 14 years ago
parent 8244b44524
commit 758dd3ea55
  1. 10
      compositor/compositor.c

@ -795,12 +795,6 @@ wlsc_output_repaint(struct wlsc_output *output)
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
wlsc_surface_draw(es, output, &total_damage); wlsc_surface_draw(es, output, &total_damage);
} else { } else {
if (output->background)
wlsc_surface_draw(output->background,
output, &total_damage);
else
fade_output(output, 1.0, &total_damage);
glUseProgram(ec->texture_shader.program); glUseProgram(ec->texture_shader.program);
wl_list_for_each_reverse(es, &ec->surface_list, link) { wl_list_for_each_reverse(es, &ec->surface_list, link) {
if (ec->overlay == es) if (ec->overlay == es)
@ -1738,6 +1732,10 @@ wlsc_output_init(struct wlsc_output *output, struct wlsc_compositor *c,
output->background = output->background =
background_create(output, option_background); background_create(output, option_background);
if (output->background != NULL)
wl_list_insert(c->surface_list.prev,
&output->background->link);
output->flags = flags; output->flags = flags;
wlsc_output_move(output, x, y); wlsc_output_move(output, x, y);

Loading…
Cancel
Save