From: Ray Strode Date: Fri, 9 Oct 2009 21:38:17 +0000 (-0400) Subject: [x11] initialize head on query not map X-Git-Tag: 0.8.0~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6547d48fde6de0df3b04c7d85f736997ceecb61b;p=thirdparty%2Fplymouth.git [x11] initialize head on query not map Do it for the same reason we did it in the frame-buffer plugin in the previous commit. It's the "right" thing to do and now that we map lazily, doing it the old way is broken. --- diff --git a/src/plugins/renderers/x11/plugin.c b/src/plugins/renderers/x11/plugin.c index a2b61c0b..8f50be5f 100644 --- a/src/plugins/renderers/x11/plugin.c +++ b/src/plugins/renderers/x11/plugin.c @@ -193,6 +193,7 @@ query_device (ply_renderer_backend_t *backend) head->area.width, head->area.height, 24); + head->pixel_buffer = ply_pixel_buffer_new (head->area.width, head->area.height); ply_list_append_data (backend->heads, head); @@ -207,6 +208,7 @@ query_device (ply_renderer_backend_t *backend) head->area.width, head->area.height, 24); + head->pixel_buffer = ply_pixel_buffer_new (head->area.width, head->area.height); ply_list_append_data (backend->heads, head); } @@ -243,7 +245,6 @@ map_to_device (ply_renderer_backend_t *backend) head = (ply_renderer_head_t *) ply_list_node_get_data (node); next_node = ply_list_get_next_node (backend->heads, node); - head->pixel_buffer = ply_pixel_buffer_new (head->area.width, head->area.height); head->window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_resizable (GTK_WINDOW (head->window), FALSE); gtk_widget_set_size_request (head->window,