summaryrefslogtreecommitdiff
path: root/libview/ev-annotation-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-annotation-window.c')
-rw-r--r--libview/ev-annotation-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index b352c2fd..a6c48d15 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -100,7 +100,7 @@ get_screen_dpi (EvAnnotationWindow *window)
gint monitor;
screen = gtk_window_get_screen (GTK_WINDOW (window));
- monitor = gdk_screen_get_monitor_at_window(screen, gtk_widget_get_window(GTK_WIDGET(GTK_WINDOW(window))));
+ monitor = gdk_screen_get_primary_monitor (screen);
return ev_document_misc_get_screen_dpi (screen, monitor);
}