feat: add LowerWindow method

This commit is contained in:
Tim Roes 2015-01-03 20:41:33 +01:00
parent 7351c47bc8
commit 2f66f04d9f
2 changed files with 15 additions and 0 deletions

View file

@ -396,6 +396,11 @@ var templates = {
}
],
LowerWindow: [
function(win) {
return module.exports.ConfigureWindow[0](win, { stackMode : 1 });
}
],
QueryTree: [
['CxSL', [15, 2]],

View file

@ -72,6 +72,16 @@ describe('ConfigureWindow', function() {
this.X.RaiseWindow(this.wid);
});
it('should LowerWindow correctly', function(done) {
var self = this;
this.X.once('event', function(ev) {
ev.type.should.equal(22); /* ConfigureNotify */
ev.aboveSibling.should.equal(0); /* 0 -> no window below this */
done();
});
this.X.LowerWindow(this.wid);
});
after(function(done) {
this.X.DestroyWindow(this.wid);
this.X.DestroyWindow(this.wid_helper);