Linux: don't throw exception if Xrandr or XF86VM extension query fails

This commit is contained in:
Elias Naur 2006-01-04 12:52:25 +00:00
parent 033dc40a89
commit 7e53e81103
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {