mirror of
https://github.com/danbulant/node-x11
synced 2026-05-21 05:19:14 +00:00
return if no extension present
This commit is contained in:
parent
cba6f61dba
commit
5b6fd461ac
1 changed files with 1 additions and 9 deletions
|
|
@ -3,21 +3,13 @@
|
|||
var x11 = require('..');
|
||||
// TODO: move to templates
|
||||
|
||||
/*
|
||||
#define X_DamageQueryVersion 0
|
||||
#define X_DamageCreate 1
|
||||
#define X_DamageDestroy 2
|
||||
#define X_DamageSubtract 3
|
||||
#define X_DamageAdd 4
|
||||
*/
|
||||
|
||||
exports.requireExt = function(display, callback)
|
||||
{
|
||||
var X = display.client;
|
||||
X.QueryExtension('DAMAGE', function(err, ext) {
|
||||
|
||||
if (!ext.present)
|
||||
callback(new Error('extension not available'));
|
||||
return callback(new Error('extension not available'));
|
||||
|
||||
ext.ReportLevel = {
|
||||
RawRectangles: 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue