On 3/22/06, Quentin Mathé <[EMAIL PROTECTED]> wrote:
Le 21 mars 06 à 18:07, Yen-Ju Chen a écrit :

> On 3/21/06, Banlu Kemiyatorn <[EMAIL PROTECTED]> wrote:
>
>> On 3/20/06, Yen-Ju Chen < [EMAIL PROTECTED]> wrote:
>>
>>  An easy way is by returning bitmap representation
>>  for any unknown type and use image magic to
>>  generate tiff stream.
>
>   But it adds a dependency on image magic.
>   Since several people are writting a WM,
>   it may be worth to have XPM support in NSImage. :D

Yes :-)


I don't think it is a dependency. It's just a fall-back backend
which will make ease for other real life activities but it is just
not a good solution for supporting XPM. That is, just to get works
done quickly and improve it later.

>> Do you have any preview version which we can take a look at ?

It is nothing for now just a concept. There are bits that I am
rethinking/rewriting. Currently it is just a library that when any GS
app load it as a bundle, it will turn that app into a WM. It uses
AppKit for decorations but I found it has a problem that if I reparent
a client window into an NSWindow, it will waste a lot of memory
since each NSWindow will allocate a framebuffer and you just have
to cover most part of it with the client windows. eg. from this ancient screenshot

http://home.gna.org/garma/windowmanagercore/images/wmcore.jpg

You will notice areas that are wasted, the buffer of NSWindow behind
the eyes, and the whole area behind the xcal client window

My current solution/code is to split the WM library into layers.
1st, non-X layer for generic windowing. 2nd, Xlib/XCB layer that need no AppKit and 3rd, AppKit layer which will use many
NSWindows to do decoration so that you don't need to waste the
memory in the middle area of each window. It will base on the current
implementation of WMCore

This WM library/bundle will be reused in WOOM, a server-client backend
system that allow you to shutdown X11 while leaving AppKit apps
running in background and bring them back to any available Display.

You can take a look at the old concept source at
http://cvs.gna.org/cvsweb/garma/System/Frameworks/WindowManager/?cvsroot=garma
I am not sure if it still work. The code is ancient and probaly very ugly.
Didn't Quentin say that etoile doesn't need an X11 window manager?
_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à