Merge pull request #75 from timroes/master

Add LowerWindow method
This commit is contained in:
Andrey Sidorov 2015-01-04 08:35:24 +11:00
commit 5e76aafd30
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);