mirror of
https://github.com/danbulant/node-x11
synced 2026-05-23 06:19:01 +00:00
commit
5e76aafd30
2 changed files with 15 additions and 0 deletions
|
|
@ -396,6 +396,11 @@ var templates = {
|
|||
}
|
||||
],
|
||||
|
||||
LowerWindow: [
|
||||
function(win) {
|
||||
return module.exports.ConfigureWindow[0](win, { stackMode : 1 });
|
||||
}
|
||||
],
|
||||
|
||||
QueryTree: [
|
||||
['CxSL', [15, 2]],
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue