-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOT GOING INSIDE x.on('event', #128
Comments
Try to launch second x11 application while your script is running ( for example, type |
Basically, what i meant to say is that the event ( PropertyNotify ) is not getting fired when i switch active windows. However, it the event fires when i switch focus to / from xeyes . What does xeyes has to do with it? I understood the earlier issue of not having X server but now when i have the X server, why isn't the Client responding to events from the server? Am I missing something here? |
so whats the advantage of it . I am making an app which will detect active current focus window it give everything in windows but in MAC it is not working good . Is x11 is not sufficient to use for MAC system in node webkit ? . and If it is sufficient plz tell now to do so by your plugin . |
this depends on integration between X and cocoa ( which is not great ). |
X over more "native" (in osx - Cocoa / Quartz )? It's more portable and currently "native" for unixes. If you intend to use on osx only there is n advantage. |
this is a good introduction to what X is - http://magcius.github.io/xplain/article/ |
nice link but @sidorares can you give me an example or docs of x11 which gives active window detail in MAC .that would we very helpful |
x11 know nothing about osx windows. You may have some luck with AppleWM extension ( node-x11 partially implements it ) |
this prints you some events from AppleWM, but it looks that at most you'll get notifications when your x11 windows are shown: var x11 = require('../../lib');
x11.createClient(function(err, display) {
var X = display.client;
X.require('apple-wm', function(err, AppleWM) {
AppleWM.SelectInput(AppleWM.NotifyMask.All)
X.on('event', function(ev) {
console.log("Event", ev); //df();
});
});
}); |
This is the code i get from you and when i run on mac it working fine but not going in side x.on('event'
var x11 = require('x11');
i am not enter in step 4
The text was updated successfully, but these errors were encountered: