4 ms·
I wrote the server from scratch JavaScript, and I can't verify its accuracy towards real server behavior: https://github.com/magcius/xplain/blob/gh-pages/src/s
by Jasper_ 12y ago
I wrote the server from scratch JavaScript, and I can't verify its accuracy towards real server behavior:
https://github.com/magcius/xplain/blob/gh-pages/src/server/server.js https://github.com/magcius/xplain/blob/gh-pages/src/server/s...
It's fake in a lot of ways, especially in its input model. It's well-commented and designed as a codebase to learn from, not as a real implementation of an X server that's reusable.
- eridius 12y agoVery cool. Unfortunately, while it appears to run just fine under Safari, the window inspector is broken. It's not vertically splitting the area and putting the attributes on the right; it's horizontally splitting and putting the attributes below the window list, except there's no room to see any of the attributes like that. It seems a real shame for the layout of the window inspector to be the only compatibility issue with Safari. Any chance you can get that fixed?
- Jasper_ 12y agoI don't know why, considering that it works fine under Firefox and Chrome. I don't have a Mac to test on here. Pull requests are welcome.
- eridius 12y agoActually, it turns out it's not even working right under Chrome either. The inspector isn't tall enough to show Properties, and it's not scrollable, so all I see is the "Properties" header with nothing under it. Here's what I'm seeing: https://files.app.net/299dvuDv6.png https://files.app.net/299dvuDv6.png Is this supposed to scroll, or what? Edit: The issue with Safari is purely that the flexbox model requires the -webkit prefix, so it needs `display: -webkit-flex` and `-webkit-flex: 1`. Edit 2: I'll submit a pull request for the Safari issues shortly, I'm trying to see if I can figure out what's wrong with scrolling first. Edit 3: PR submitted. This fixes both Safari compatibility and scrolling for Chrome/Safari.
- nandhp 12y agoIt looks like it is supposed to scroll -- but it doesn't in Firefox 26 or Firefox 30.