summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 5c7124b4..59a3a27e 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -384,9 +384,11 @@ static gdouble
get_screen_dpi (EvWindow *window)
{
GdkScreen *screen;
+ gint monitor;
screen = gtk_window_get_screen (GTK_WINDOW (window));
- return ev_document_misc_get_screen_dpi (screen);
+ monitor = gdk_screen_get_monitor_at_window(screen, gtk_widget_get_window(GTK_WIDGET(GTK_WINDOW(window))));
+ return ev_document_misc_get_screen_dpi (screen, monitor);
}
static void