From: Ray Strode Date: Sat, 3 Oct 2009 04:28:52 +0000 (-0400) Subject: [x11] Don't allow windows to be resized X-Git-Tag: 0.8.0~182^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b0910dc5f52a1805d7dc765f66de38586d2f264;p=thirdparty%2Fplymouth.git [x11] Don't allow windows to be resized We don't handle the display resizing, so disallow it. --- diff --git a/src/plugins/renderers/x11/plugin.c b/src/plugins/renderers/x11/plugin.c index 87ad8bb4..5293cf16 100644 --- a/src/plugins/renderers/x11/plugin.c +++ b/src/plugins/renderers/x11/plugin.c @@ -234,9 +234,10 @@ map_to_device (ply_renderer_backend_t *backend) head->pixel_buffer = ply_pixel_buffer_new (head->area.width, head->area.height); head->window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_default_size (GTK_WINDOW (head->window), - head->area.width, - head->area.height); + gtk_window_set_resizable (GTK_WINDOW (head->window), FALSE); + gtk_widget_set_size_request (head->window, + head->area.width, + head->area.height); shadow_buffer = ply_pixel_buffer_get_argb32_data (head->pixel_buffer); head->image = cairo_image_surface_create_for_data ((unsigned char *) shadow_buffer, CAIRO_FORMAT_ARGB32,