diff --git a/examples/simple/createwindow.js b/examples/simple/createwindow.js index 907b573..347e169 100644 --- a/examples/simple/createwindow.js +++ b/examples/simple/createwindow.js @@ -1,7 +1,14 @@ var x11 = require('../../lib/x11'); x11.createClient(function(display) { + console.log(display.screen[0]) var X = display.client; var wid = X.AllocID(); - X.CreateWindow(wid, display.screen[0].root, 100, 100, 400, 300); + X.CreateWindow(wid, display.screen[0].root, 100, 100, 400, 300, + 11, + 32, + 0, + 613 + ); X.MapWindow(wid); + X.on('error', function(err) { console.log(err) }); });