[Y-devel] Wiki: Porting window managers

Mark Thomas mark at www.y-windows.org
Thu Feb 26 20:28:36 GMT 2004


Brandon Black wrote:
> 
> Yeah I've been thinking about these compatibility and transitional 
> legacy support things a bit, they're tough issues for sure.
> 
> 1) I agree that for core things like window managers, we should stick to 
> from-scratch stuff.  Ideally we shouldn't really need more than 1 simple 
> window manager that's themable and user-configurable for behavior 
> anyways, and that should cover it.  A lot of other things that people 
> commonly associate with "window manager" like docks and taskbars can be 
> seperate applications that start from your .yinit file rather than Y 
> modules.

Agreed.  I think we should focus on one good window manager, and leave 
it optional for people to make their own.

> 3) Eventually if we want to replace X outright, we'll have to have an 
> actual X API interface of some sort for legacy applications and for 
> talking to X clients on legacy servers.  (for instance, even if all the 
> gtk apps on my linux box ran fine under Y, I would still need an X 
> server running so that I can do remote displays back to myself of native 
> X apps on Solaris machines at work, like crappy storage management GUIs 
> and things).  Rather than at the relinking level like the gtk stuff, 
> this should probably be handled at the protocol level at the socket the 
> client connects to.  You could basically have an XY server that you 
> start up which listens on the X tcp and unix sockets and acts as a 
> virtual X server and makes everything work to display the client in your 
> Y server.
> 

A better way to do it is make it a module in the Y server.  Then your 
config could say:

LoadModule "drivers/ipc/legacy/X11"

and mystically X apps work on Y.  What would happen is for every X 
window made, a corresponding Y window would be made and a canvas packed 
inside.  Then you can translate all X draws into canvas draws and all 
the Y events back into X events.

This would need someone familiar with the X protocol to implement.

Regards,

   Mark.
-- 
|| Mark Thomas
|| www.y-windows.org
||
||



More information about the Y-devel mailing list









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