diff options
Diffstat (limited to 'ecore_x_scrnsaver.c')
-rw-r--r-- | ecore_x_scrnsaver.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ecore_x_scrnsaver.c b/ecore_x_scrnsaver.c index d524086..c604801 100644 --- a/ecore_x_scrnsaver.c +++ b/ecore_x_scrnsaver.c @@ -15,13 +15,13 @@ ecore_x_scrnsaver_query(Ecore_X_Screensaver_Query *info_query) Bool ext_result; /* Query extention */ - ext_result = XScreenSaverQueryExtension(ecore_x_disp, &info_query.event_basep, &info_query.error_basep); + ext_result = XScreenSaverQueryExtension(ecore_x_disp, info_query->event_basep, info_query->error_basep); /* Query version and status */ - info_query.ScreenSaver_status = XScreenSaverQueryVersion(ecore_x_disp, &info_query.major_version, &info_query.major_version); + info_query->ScreenSaver_status = XScreenSaverQueryVersion(ecore_x_disp, info_query->major_version, info_query->major_version); - if (Queryresult == 0) - return 0; - else + if (!ext_result) return 1; + else + return 0; } |