summaryrefslogtreecommitdiff
path: root/ecore_x_scrnsaver.c
blob: c604801fa56fcb02ce7ec0040d05df7a9d61209c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * 
 * XScreenSaver code
 * 
 */

#include "Ecore_X_ScreenSaver.h"

/* Make a query for extention presence */

/*Ecore_X_ScreenSaver */
int
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);
	/* Query version and status */
	
	info_query->ScreenSaver_status = XScreenSaverQueryVersion(ecore_x_disp, info_query->major_version, info_query->major_version);
	
	if (!ext_result)
		return 1;
	else
		return 0;
}