[Fwd: RE: [Y-devel] compatibility, gtk+, Qt etc]

Shawn core at enodev.com
Fri Feb 20 17:48:43 GMT 2004


Comments inline:

On Fri, 2004-02-20 at 08:35 -0500, Thomas wrote:
> We have some module (or set of modules.  from what ive been looking at we 
> might need to have a video driver and a widget theme, maybe a wm as well to 
> do it this way) that, instead of drawing to a frame buffer, issue X commands 
> (ie, in the paintRectangle() function, they just use the XLib call to paint a 
> rectangle).
> 
> their usage would go something like this:  I'm sitting in the computer lab on 
> a unix workstation, and decide i want to run something off the computer in my 
> dorm room.  I ssh into my comp, start up a second Y server with the XLib 
> compat drivers loaded, and i tell it which X server to point to.  Then i run 
> my Y application and point it to that Y server (or, presumably move a running 
> Y application over to that server).  This server then translates all the low 
> level drawing/event stuff into the X protocol through XLib and sends it out 
> over the network, displaying on the unix workstation.

So this is a Y -> X protocol proxy, right? Basically sending Y protocol
over the net, and having a Y proxy server acting like a remote Y server,
but using X to display like the Y server is really an X client?

(BTW, both "-y" and "-Y" options are unused in openssh... Anyone like to
take a stab? Or at least start talking to them?)

> Of course that would remove the nice overhead gain of server side widgets, but 
> using the *exact same* implementation and a slightly different usage, we can 
> get rid of that too:  Instead of running the Y->X translating server on my 
> remote computer, i run it on the computer i want the windows to display on 
> (assuming i have permissions of course) and i then ssh into my dorm computer, 
> and point all the applications i want to run at the Y server running local on 
> the workstation.  They transmit the lower bandwidth Y protocol over the 
> network, which is then translated into XLib calls and sent through the XLib 
> protocol between two local processes, which should dramatically speed up the 
> drawing times from the first usage without actually having to rewrite code.

It seems like you're describing one of the solutions I mentioned in a
previous email.

> To me, this seems the most portable, least amount of code to rewrite (we dont 
> have to bother rewriting a whole new server when one already exists), and the 
> most flexible.

So long as the Xwindow target DISPLAY host doesn't have to run an X and
a Y desktop in full GUI mode.. It would seem the remote Y translating
server could be started in some sort of redirect mode.

Better yet, could there not be a Y compat module written for XFree86 in
a more direct fashion utilizing libY[c]? This is really where the code
for what it would need is anyway, right? (Forgive me for not looking)

> As far as compatibility in the other direction (drawing X windows in the Y 
> server), this was discussed in the PDF and i like the idea used there.  that 
> method, as i understand it, is to have a module that you load into your Y 
> server that acts as an X server, receiving things over the X protocol in the 
> standard network-transparent way and then translating them into the 
> appropriate low level Y drawing commands (since the low level drawing 
> commands are the only thing remotely analogous between the two protocols).

Yep. /me nods

> well, that got really long really fast.
> anyway, its just an idea, and i need to read more code to see how feasible it 
> is, but in my opinion it seems like these are the two best ways to do this 
> that have been mentioned so far.

What do you think of the "XFree86 module implementing Y server
functionality using libY[c]" idea's feasibility?



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved