Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
bff9fb6af4
commit
cee8036a9d
13
js/x11/core/examples/smoketest/selections.js
Normal file
13
js/x11/core/examples/smoketest/selections.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
var x11 = require('../../lib');
|
||||
|
||||
x11.createClient(function(err, display) {
|
||||
var X = display.client;
|
||||
var id = parseInt(process.argv[2]);
|
||||
var root = display.screen[0].root;
|
||||
X.SetSelectionOwner(root, X.atoms.PRIMARY);
|
||||
X.GetSelectionOwner(X.atoms.PRIMARY, function(err, win) {
|
||||
console.log(err, win, root);
|
||||
});
|
||||
X.on('event', console.log);
|
||||
X.on('error', console.error);
|
||||
});
|
Loading…
Reference in New Issue
Block a user