diff options
Diffstat (limited to 'libview')
-rw-r--r-- | libview/ev-annotation-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index de5c8876..dac7f8d4 100644 --- a/libview/ev-annotation-window.c +++ b/libview/ev-annotation-window.c @@ -99,9 +99,11 @@ static gdouble get_screen_dpi (EvAnnotationWindow *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 GtkIconSize |