sidorares/node-x11

X.GetKeyboardMapping callback param list is null

Closed this issue · 2 comments

I use node-x11 with xephyr, but the following code show that list is null;

require('x11').createClient({display: ":12"}, function(err, display) {
            var min = display.min_keycode; // is 8
            var max = display.max_keycode; // is 255
            display.client.GetKeyboardMapping(min, max-min, function(list){ 
                console.log(list); // out put is null
            });

what's wrong with my usage?

I have done it. In new version of node-x11, it should be function(err, list).

yes. Please fill issue if some of examples/documentation still outdated