Skip to content

Instantly share code, notes, and snippets.

@sidorares
Created August 15, 2012 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidorares/3354128 to your computer and use it in GitHub Desktop.
Save sidorares/3354128 to your computer and use it in GitHub Desktop.
simple SubstructureRedirect demo
var x11 = require('x11');
x11.createClient(function(display) {
X = display.client;
root = display.screen[0].root;
X.ChangeWindowAttributes(root, { eventMask: x11.eventMask.SubstructureRedirect }, function(err) {
if (err.error == 10)
{
console.error('Error: another window manager already running.');
process.exit(1);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment