Code Monkey home page Code Monkey logo

Comments (16)

sidorares avatar sidorares commented on September 15, 2024

actually, maybe not, since everything could be referenced from client parameter...

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

In fact, I think I'll need that dependency as the eventMask is not referenced in the client or is it?

from node-ewmh.

sidorares avatar sidorares commented on September 15, 2024

It's not, but we can add it. What do you think?

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

I think it makes sense.
Another thing that I think it could be somehow related is how do I make sure the client used by EWMH has a specific version. For example: I'm going to push some changes that needs the client to be from, at least, [email protected]
Is there a way to accomplish this? Ideally if this could be configured via package.json would be great

from node-ewmh.

sidorares avatar sidorares commented on September 15, 2024

peerDependency ?

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

Oh, I didn't know about that. I'm going to check the npm docs.
Thanks!

BTW, don't worry about adding eventMask to the client. I'll do the PR

from node-ewmh.

sidorares avatar sidorares commented on September 15, 2024

I'm trying to keep everything in namespace objects but probably we can make exception for core events mask and alias them directly, so one could use X.PropertyNotify

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

I'd rather do something like this: X.eventMask.PropertyNotify, so I know it is indeed a mask, but as you prefer

from node-ewmh.

sidorares avatar sidorares commented on September 15, 2024

Masks usually appear in big groups an I often see me typing 'eventMask' many times in the same expression

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

Yes, I understand that. I'm not totally sold on this but will do.

from node-ewmh.

sidorares avatar sidorares commented on September 15, 2024

Maybe make eventMask hash and helper function? X.eventMask ('PropertyNotify StructureNotify)

from node-ewmh.

sidorares avatar sidorares commented on September 15, 2024

Ok expose only eventMask reference :)

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

Sorry I'm not sure I understand:

X.PropertyNotify

or

X.eventMask.PropertyNotify

from node-ewmh.

sidorares avatar sidorares commented on September 15, 2024

The latter, as in your initial suggestion. I'm probably overcomplicating simple things. X.eventMask.PropertyNotify

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

Ok. Thanks!

from node-ewmh.

santigimeno avatar santigimeno commented on September 15, 2024

Sent PR: sidorares/node-x11#43

from node-ewmh.

Related Issues (6)

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.