Commit 15e31724 authored by Guido Gunther's avatar Guido Gunther
Browse files

PhoshBackground: Get width and height from layer surface

Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent 96b6dc45
......@@ -112,7 +112,7 @@ load_background (PhoshBackground *self,
if (!image)
image = gdk_pixbuf_new_from_xpm_data (xpm_data);
gtk_window_get_size (GTK_WINDOW (self), &width, &height);
g_object_get (self, "width", &width, "height", &height, NULL);
priv->pixbuf = image_background (image, width, height);
/* force background redraw */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment