On Fri, 21 May 2010 11:19:57 +0800 whtuhtc tu <whtu...@gmail.com> said:

> More specific, when a AP initialize, it seems wm sould be informed and give
> the AP a window. where does it happen?
> 
> If my understanding is wrong, please correct mine.

that's not how x works. the app creates a window. wm isnt invovled at all. in
x11 apps can work with OR without a wm present. you really need to  read up on
x11 and how it works. but the simple version:

app creates window
app sets properties on the window (title, name, class, min/max size etc.)
app shows the window
x11 intercepts the show and doesnt do it if a wm is present - x sends the wm a
"show request" event for this window. now it's the wm's problem.
wm gets the show event
wm reads any properties it may handle and know about from the window
wm makes a decision as to what to do with the window
if wm decides to manage it, it creates its own "frame window".
wm puts app window inside its fram window (reparents it)
wm may resize app window or may not - up to the wm. on a desktop wm generally
wm uses size that app created the window at and makes the frame just a little
bigger so it can hold titlebar, borders etc.
wm handles drawing the titlebar and borders, but app keeps drawing to its own
window and handling its own keyboard and mouse input events directly from x. wm
isnt invovled in these events (beyond setting window focus - focus tells the
xserver where keyboard events go (what window) whhen you press keys as they can
only go to 1 window (the focused window).

thats an example of what generally happens. didfferent wm's may work slightly
differently. override-redirec windows bypass the wm and dont have their show
request redirected to the wm - the wm doesnt interfere with such windows (they
are used generally for popup menus for example).

anyway - you need to study up on x11 before you want to understand the rest. :)
toolkits like efl (elementary) are just libraries that create windows, handle
keyboard + mouse input and draw to those windows for you filling them with
stuff.

> whtuhtc
> 
> 2010/5/21 Carsten Haitzler <ras...@rasterman.com>
> 
> > On Fri, 21 May 2010 10:05:02 +0800 whtuhtc tu <whtu...@gmail.com> said:
> >
> > > I am trying to understand the EFL, including how to use and how to modify
> > to
> > > fit my own purpose.
> > > by the way, where does the AP developed based on the elementary toolkit
> > > communicate with the window manager, when the AP start. Is it in
> > > ecore_init()?
> >
> > no - as such "where does it communicated with the wm" - that is a complex
> > topic. first you'd need to just know how x11 and window managers work in
> > general - there is no one "place" where they communicate - it happens in
> > many
> > places, sometimes explicit, most of the time just implicitly by setting
> > properties (hints) or simply trying to do things and the wm "reacts".
> >
> > > whtuhtc
> > > 2010/5/20 Vincent Torri <vto...@univ-evry.fr>
> > >
> > > >
> > > >
> > > > On Thu, 20 May 2010, wh tu wrote:
> > > >
> > > >  Hi Rasterman,
> > > >>
> > > >> I know my qusetion is too rough. Thanks for you reminder. :-)
> > > >>
> > > >> Anyway, I am interested in EFL. It is a work of art I will trace the
> > > >> source
> > > >> and try to figure out.
> > > >>
> > > >
> > > > are you interested in working with the EFL, or on the EFL ?
> > > >
> > > > Vincent
> > > >
> > > >
> > > >  Also thanks for Atton's reply.
> > > >>
> > > >> 2010/5/20 Atton Jonathan <jonathan.at...@gmail.com>
> > > >>
> > > >>  Search ELM_THEME in the source file.
> > > >>>
> > > >>> 2010/5/20 Carsten Haitzler <ras...@rasterman.com>
> > > >>>
> > > >>>  On Tue, 18 May 2010 16:28:36 +0800 wh tu <whtu...@gmail.com> said:
> > > >>>>
> > > >>>>  Hi Rasterman and Vincent,
> > > >>>>>
> > > >>>>> Thanks for your quick reply.
> > > >>>>>
> > > >>>>> I will look at the elm_theme.c. If this is not so time -consuming
> > for
> > > >>>>>
> > > >>>> you
> > > >>>>
> > > >>>>> could you tell me the startup processes when elementary_test run?
> > > >>>>>
> > > >>>>
> > > >>>> ummmm.. it does... stuff! lots and lots and lots of it... going down
> > > >>>> many
> > > >>>> many
> > > >>>> many layers through multiple libraries, caches and more... it's like
> > > >>>> asking
> > > >>>> "can you tell me the history of the roman empire please, if it's not
> > too
> > > >>>> time
> > > >>>> consuming" :) sure "they started small - conquered a large chunk of
> > > >>>> wseter
> > > >>>> europe and the middle east, grew big, became decadent and eventually
> > > >>>> disintegrated". :)
> > > >>>>
> > > >>>>  Thanks
> > > >>>>>
> > > >>>>> whtuhtc
> > > >>>>>
> > > >>>>> 2010/5/18 Vincent Torri <vto...@univ-evry.fr>
> > > >>>>>
> > > >>>>>
> > > >>>>>>
> > > >>>>>> On Tue, 18 May 2010, Carsten Haitzler (The Rasterman) wrote:
> > > >>>>>>
> > > >>>>>>  On Tue, 18 May 2010 15:11:28 +0800 wh tu <whtu...@gmail.com>
> > said:
> > > >>>>>>
> > > >>>>>>>
> > > >>>>>>>  Hi,
> > > >>>>>>>
> > > >>>>>>>>
> > > >>>>>>>> I am interested in elementary toolkit. I know elementary_test
> > load
> > > >>>>>>>> data/theme/default.edj as its default theme, but I cannot find
> > out
> > > >>>>>>>>
> > > >>>>>>> in
> > > >>>>
> > > >>>>> which
> > > >>>>>>>> source code file the default.edj file is loaded. I guess this
> > > >>>>>>>>
> > > >>>>>>> process
> > > >>>>
> > > >>>>> should
> > > >>>>>>>> be done in initial process. Anyone could tell where is it?
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>> its an edje file. you can decompile edje files with edje_decc -
> > also
> > > >>>>>>>
> > > >>>>>> in
> > > >>>>
> > > >>>>> elementary's source in data/themes you'll find the original source
> > to
> > > >>>>>>>
> > > >>>>>> the
> > > >>>>
> > > >>>>> theme.
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>> maybe elm_theme.c is the source file he wants.
> > > >>>>>>
> > > >>>>>> Vincent
> > > >>>>>>
> > > >>>>>>
> > > >>>>>
> > > >>>>
> > > >>>> --
> > > >>>> ------------- Codito, ergo sum - "I code, therefore I am"
> > --------------
> > > >>>> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > ------------------------------------------------------------------------------
> > > >>>>
> > > >>>> _______________________________________________
> > > >>>> enlightenment-devel mailing list
> > > >>>> enlightenment-devel@lists.sourceforge.net
> > > >>>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >>>>
> > > >>>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Regards.
> > > >>>
> > > >>>
> > ------------------------------------------------------------------------------
> > > >>
> > > >> _______________________________________________
> > > >> enlightenment-devel mailing list
> > > >> enlightenment-devel@lists.sourceforge.net
> > > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >>
> > > >>
> > > >>
> > >
> > ------------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > enlightenment-devel mailing list
> > > enlightenment-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > >
> >
> >
> > --
> > ------------- Codito, ergo sum - "I code, therefore I am" --------------
> > The Rasterman (Carsten Haitzler)    ras...@rasterman.com
> >
> >
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------

_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to