mirror of
https://github.com/danbulant/node-x11
synced 2026-06-24 09:12:13 +00:00
Some more fixes in extensions
- Return always if the extension is not available
This commit is contained in:
parent
9b8cef815b
commit
f8a3c71252
5 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ exports.requireExt = function(display, callback)
|
||||||
X.QueryExtension('BIG-REQUESTS', function(err, ext) {
|
X.QueryExtension('BIG-REQUESTS', function(err, ext) {
|
||||||
|
|
||||||
if (!ext.present)
|
if (!ext.present)
|
||||||
callback(new Error('extension not available'));
|
return callback(new Error('extension not available'));
|
||||||
|
|
||||||
ext.Enable = function( cb )
|
ext.Enable = function( cb )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ exports.requireExt = function(display, callback)
|
||||||
X.QueryExtension('Composite', function(err, ext) {
|
X.QueryExtension('Composite', function(err, ext) {
|
||||||
|
|
||||||
if (!ext.present)
|
if (!ext.present)
|
||||||
callback(new Error('extension not available'));
|
return callback(new Error('extension not available'));
|
||||||
|
|
||||||
ext.Redirect = {
|
ext.Redirect = {
|
||||||
Automatic: 0,
|
Automatic: 0,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ exports.requireExt = function(display, callback)
|
||||||
|
|
||||||
if (!ext.present)
|
if (!ext.present)
|
||||||
{
|
{
|
||||||
callback(new Error('extension not available'));
|
return callback(new Error('extension not available'));
|
||||||
}
|
}
|
||||||
|
|
||||||
ext.QueryVersion = function(clientMaj, clientMin, callback)
|
ext.QueryVersion = function(clientMaj, clientMin, callback)
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ exports.requireExt = function(display, callback)
|
||||||
X.QueryExtension('SHAPE', function(err, ext) {
|
X.QueryExtension('SHAPE', function(err, ext) {
|
||||||
|
|
||||||
if (!ext.present)
|
if (!ext.present)
|
||||||
callback(new Error('extension not available'));
|
return callback(new Error('extension not available'));
|
||||||
|
|
||||||
ext.Kind = {
|
ext.Kind = {
|
||||||
Bounding: 0,
|
Bounding: 0,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ exports.requireExt = function(display, callback)
|
||||||
X.QueryExtension('XC-MISC', function(err, ext) {
|
X.QueryExtension('XC-MISC', function(err, ext) {
|
||||||
|
|
||||||
if (!ext.present)
|
if (!ext.present)
|
||||||
callback(new Error('extension not available'));
|
return callback(new Error('extension not available'));
|
||||||
|
|
||||||
ext.QueryVersion = function(clientMaj, clientMin, cb)
|
ext.QueryVersion = function(clientMaj, clientMin, cb)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue