mirror of
https://github.com/danbulant/node-x11
synced 2026-07-05 11:10:58 +00:00
Edited README.md via GitHub
This commit is contained in:
parent
e622b2ae32
commit
1278597736
1 changed files with 2 additions and 2 deletions
|
|
@ -6,8 +6,8 @@
|
||||||
var x = require('x11');
|
var x = require('x11');
|
||||||
|
|
||||||
var s = x.createConnection().defaultScreen();
|
var s = x.createConnection().defaultScreen();
|
||||||
var wnd = s.createWindow(10, 10, 100, 100); // RootWindow as parent by default
|
var wnd = s.createWindow(10, 10, 100, 100);
|
||||||
wnd.selectInput(x.ExposureMask | x.KeyPressMask); // optional, all input by default
|
// adding event callback also selects event on server
|
||||||
wnd
|
wnd
|
||||||
.on('expose', function(exposeevent)
|
.on('expose', function(exposeevent)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue