Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-application.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index a09906c..050b396 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -644,7 +644,9 @@ method_call_cb (GDBusConnection *connection,
}
g_variant_iter_free (iter);
- if (display != NULL)
+ if (display != NULL &&
+ screen_number >= 0 &&
+ screen_number < gdk_display_get_n_screens (display))
screen = gdk_display_get_screen (display, screen_number);
else
screen = gdk_screen_get_default ();