From 7e53e811037b1e418e577fb21b2d7014d405e89d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 4 Jan 2006 12:52:25 +0000 Subject: [PATCH] Linux: don't throw exception if Xrandr or XF86VM extension query fails --- src/native/linux/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/linux/display.c b/src/native/linux/display.c index d685ff67..0c4e616a 100644 --- a/src/native/linux/display.c +++ b/src/native/linux/display.c @@ -68,7 +68,7 @@ static bool getXF86VidModeVersion(JNIEnv *env, Display *disp, int *major, int *m int event_base, error_base; if (!XF86VidModeQueryExtension(disp, &event_base, &error_base)) { - throwException(env, "XF86VidMode extension not available"); + printfDebugJava(env, "XF86VidMode extension not available"); return false; } if (!XF86VidModeQueryVersion(disp, major, minor)) { @@ -83,7 +83,7 @@ static bool getXrandrVersion(JNIEnv *env, Display *disp, int *major, int *minor) int event_base, error_base; if (!XRRQueryExtension(disp, &event_base, &error_base)) { - throwException(env, "Xrandr extension not available"); + printfDebugJava(env, "Xrandr extension not available"); return false; } if (!XRRQueryVersion(disp, major, minor)) {