Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
a512132149
commit
29f861f18e
15
js/x11/examples/smoketest/randr.js
Normal file
15
js/x11/examples/smoketest/randr.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
var x11 = require('../../lib');
|
||||
|
||||
x11.createClient(function(err, display) {
|
||||
var X = display.client;
|
||||
var root = display.screen[0].root;
|
||||
X.require('randr', function(err, Randr) {
|
||||
//console.log(Randr);
|
||||
//Randr.QueryVersion(1, 4, console.log);
|
||||
Randr.SelectInput(root, Randr.NotifyMask.ScreenChange);
|
||||
X.on('event', function(ev) {
|
||||
console.log(ev);
|
||||
});
|
||||
});
|
||||
X.on('error', function(err) { console.log(err); });
|
||||
});
|
Loading…
Reference in New Issue
Block a user