Code Monkey home page Code Monkey logo

node-ewmh's Issues

Error: Could not set SubstructureRedirect to root window event_mask

Error
    at XClient.req_proxy [as ChangeWindowAttributes] (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/xcore.js:189:30)
    at /home/spaceboyross/RDE/src/panel/node_modules/ewmh/lib/ewmh.js:16:15
    at ReadFixedRequest.callback (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/xcore.js:545:21)
    at ReadFixedRequest.execute (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/unpackstream.js:41:10)
    at UnpackStream.resume (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/unpackstream.js:165:30)
    at UnpackStream.write (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/unpackstream.js:102:10)
    at Socket.<anonymous> (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/xcore.js:88:21)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:250:12)
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: Could not set SubstructureRedirect to root window event_mask
    at /home/spaceboyross/RDE/src/panel/node_modules/ewmh/lib/ewmh.js:19:29
    at ReadFixedRequest.callback (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/xcore.js:490:39)
    at ReadFixedRequest.execute (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/unpackstream.js:41:10)
    at UnpackStream.resume (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/unpackstream.js:165:30)
    at UnpackStream.write (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/unpackstream.js:102:10)
    at Socket.<anonymous> (/home/spaceboyross/RDE/src/panel/node_modules/x11/lib/xcore.js:88:21)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:250:12)
    at readableAddChunk (_stream_readable.js:237:11)

Control instead of replace WM

is it possible to control an existing WM (Xmonad in my case) instead of replacing it? Like the tool wmctl . I get the 'bad access' error when try to create an EWMH instance.

Tests failing

Same problem on two fairly recent systems each running Node v0.10.35.

[andy@sandpit ewmh]$ npm test

> [email protected] test /home/andy/node_modules/ewmh
> mocha


  ․․․․․

  1 passing (2s)
  4 failing

  1) EWMH creation should emit error in case another wm is listening for SubstructureRedirect:
     Uncaught Error: Bad access
      at ReadFixedRequest.callback (/home/andy/node_modules/ewmh/node_modules/x11/lib/xcore.js:432:29)
      at ReadFixedRequest.execute (/home/andy/node_modules/ewmh/node_modules/x11/lib/unpackstream.js:41:10)
      at UnpackStream.resume (/home/andy/node_modules/ewmh/node_modules/x11/lib/unpackstream.js:165:30)
      at UnpackStream.write (/home/andy/node_modules/ewmh/node_modules/x11/lib/unpackstream.js:102:10)
      at Socket.<anonymous> (/home/andy/node_modules/ewmh/node_modules/x11/lib/xcore.js:58:21)
      at Socket.emit (events.js:95:17)
      at Socket.<anonymous> (_stream_readable.js:765:14)
      at Socket.emit (events.js:92:17)
      at emitReadable_ (_stream_readable.js:427:10)
      at emitReadable (_stream_readable.js:423:5)
      at readableAddChunk (_stream_readable.js:166:9)
      at Socket.Readable.push (_stream_readable.js:128:10)
      at Pipe.onread (net.js:529:21)

  2) EWMH creation should start listening for SubstructureRedirect events in root if no other wm:
     Error: write after end
      at writeAfterEnd (_stream_writable.js:133:12)
      at Socket.Writable.write (_stream_writable.js:181:5)
      at Socket.write (net.js:616:40)
      at UnpackStream.<anonymous> (/home/andy/node_modules/ewmh/node_modules/x11/lib/xcore.js:52:16)
      at UnpackStream.emit (events.js:95:17)
      at UnpackStream.flush (/home/andy/node_modules/ewmh/node_modules/x11/lib/unpackstream.js:311:15)
      at XClient.req_proxy [as InternAtom] (/home/andy/node_modules/ewmh/node_modules/x11/lib/xcore.js:200:37)
      at Context.<anonymous> (/home/andy/node_modules/ewmh/test/events.js:45:17)
      at Test.Runnable.run (/home/andy/node_modules/ewmh/node_modules/mocha/lib/runnable.js:194:15)
      at Runner.runTest (/home/andy/node_modules/ewmh/node_modules/mocha/lib/runner.js:358:10)
      at /home/andy/node_modules/ewmh/node_modules/mocha/lib/runner.js:404:12
      at next (/home/andy/node_modules/ewmh/node_modules/mocha/lib/runner.js:284:14)
      at /home/andy/node_modules/ewmh/node_modules/mocha/lib/runner.js:293:7
      at next (/home/andy/node_modules/ewmh/node_modules/mocha/lib/runner.js:237:23)
      at Object._onImmediate (/home/andy/node_modules/ewmh/node_modules/mocha/lib/runner.js:261:5)
      at processImmediate [as _immediateCallback] (timers.js:354:15)

  3) setting properties... set_supported should set _NET_SUPPORTED correctly:
     Uncaught Error: Could not set SubstructureRedirect to root window event_mask
      at /home/andy/node_modules/ewmh/lib/ewmh.js:19:29
      at ReadFixedRequest.callback (/home/andy/node_modules/ewmh/node_modules/x11/lib/xcore.js:457:39)
      at ReadFixedRequest.execute (/home/andy/node_modules/ewmh/node_modules/x11/lib/unpackstream.js:41:10)
      at UnpackStream.resume (/home/andy/node_modules/ewmh/node_modules/x11/lib/unpackstream.js:165:30)
      at UnpackStream.write (/home/andy/node_modules/ewmh/node_modules/x11/lib/unpackstream.js:102:10)
      at Socket.<anonymous> (/home/andy/node_modules/ewmh/node_modules/x11/lib/xcore.js:58:21)
      at Socket.emit (events.js:95:17)
      at Socket.<anonymous> (_stream_readable.js:765:14)
      at Socket.emit (events.js:92:17)
      at emitReadable_ (_stream_readable.js:427:10)
      at emitReadable (_stream_readable.js:423:5)
      at readableAddChunk (_stream_readable.js:166:9)
      at Socket.Readable.push (_stream_readable.js:128:10)
      at Pipe.onread (net.js:529:21)

  4) EWMH creation "after all" hook:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/home/andy/node_modules/ewmh/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)



npm ERR! Test failed.  See above for more details.
[andy@sandpit ewmh]$ 

publish?

I'd like to start using it :)

More functions

There should be a way to set _NET_WM_STRUT. It's an array of 4 CARDINALs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.