Created
August 15, 2012 00:11
-
-
Save sidorares/3354128 to your computer and use it in GitHub Desktop.
simple SubstructureRedirect demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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