mirror of
https://github.com/danbulant/node-x11
synced 2026-05-19 04:18:35 +00:00
Fix 'root' deprecation warning
This would previously be printed in part of the test log:
(node:1628) [DEP0016] DeprecationWarning: 'root' is deprecated, use 'global'
Apparently, the global object was once called root, and this assignment
didn't have a `var`, so it was actually setting the global object.
I do wonder why that didn't break anything, but this is clearly what was
intended.
This commit is contained in:
parent
e87b183a8f
commit
ed27aa84ff
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ describe('KillKlient request', function() {
|
|||
should.not.exist(err);
|
||||
display = dpy;
|
||||
X = display.client;
|
||||
root = display.screen[0].root;
|
||||
var root = display.screen[0].root;
|
||||
var eventMask = x11.eventMask.SubstructureNotify;
|
||||
X.ChangeWindowAttributes(root, { eventMask: eventMask });
|
||||
done();
|
||||
|
|
|
|||
Loading…
Reference in a new issue