[Y-devel] Wiki: Porting window managers

Brandon Black brandon at tryplec.com
Thu Feb 26 06:04:40 GMT 2004


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.

2) As for initial compatibility with existing Linux apps, I think one of 
the better paths to take would be wrapper/emulation libraries for the 
common toolkits like GTK and QT, without actually supporting X itself.  
For instance, the GTK C++ API (gtkmm) maps almost perfectly with how 
Yc++ looks, it would probably be very easy to write a "ygtkmm" library 
such that an app written for gtkmm would run as a Y app either with 
runtime linking or compile time.  Even the more complex cases can 
probably wrapped in a similar fashion.  This buys you the ability to run 
GTK and QT apps, which covers a whole lot of ground for us.  Most of 
said apps never call any X APIs directly.  Once that works people will 
use Y, then the app developers take note and port the apps to Y natively.

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.

James Harr wrote:

>I was looking on the want list for ported window managers.
>
>Porting window managers sounds like a really complex task resulting in a 
>window manager module that's a hack that wasn't designed for Y in the first 
>place. Personally I think we should focus on keeping everything custom fit to 
>Y.
>
>I admit we should somehow have some sort of compatability with QT and even the 
>X protocol itself to support a transition, however a window manager is not 
>something that needs to be ported over.
>
>Now if you're talking about cloning it so it looks and functions the same, I'm 
>all for that, but I think we should distinguish between porting and 
>cloning.... imho :)
>
>Thanks,
>James Harr
>  
>




More information about the Y-devel mailing list









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