mirror of
https://github.com/danbulant/node-x11
synced 2026-06-17 21:51:17 +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 s = x.createConnection().defaultScreen();
|
||||
var wnd = s.createWindow(10, 10, 100, 100); // RootWindow as parent by default
|
||||
wnd.selectInput(x.ExposureMask | x.KeyPressMask); // optional, all input by default
|
||||
var wnd = s.createWindow(10, 10, 100, 100);
|
||||
// adding event callback also selects event on server
|
||||
wnd
|
||||
.on('expose', function(exposeevent)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue