Mon 21 Jul 22:43:21 CEST 2025

This commit is contained in:
sbosse 2025-07-21 23:05:10 +02:00
parent a512132149
commit 29f861f18e

View 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); });
});