diff options
Diffstat (limited to 'eel/eel-background.c')
-rw-r--r-- | eel/eel-background.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eel/eel-background.c b/eel/eel-background.c index 76f47a69..b096650a 100644 --- a/eel/eel-background.c +++ b/eel/eel-background.c @@ -311,9 +311,13 @@ drawable_get_adjusted_size (EelBackground *self, { if (self->details->is_desktop) { + gint sc_width, sc_height; GdkScreen *screen = gtk_widget_get_screen (self->details->widget); - *width = gdk_screen_get_width (screen); - *height = gdk_screen_get_height (screen); + + gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, + &sc_width, &sc_height); + *width = sc_width; + *height = sc_height; } else { |