[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
How does nanowm add itself to the root window's "eventclients" list!
From: "wang" ####@####.#### Date: 26 Jul 2002 09:31:45 -0000 Message-Id: Alex,Greg: When I'm reading nanowm.c,I find that the window we select for event is the root window.as we known, any time we want to deliver an event(take update for example),we should know the window it happenned in, then use "for (ecp = wp->eventclients; ecp; ecp = ecp->next)" to send event to every client which is interested in the window,but what confuse me is that I can't find the code which add the client nanowm to the "eventclients" list of root window. When and where does nanowm do this adding job? Need you help! wang ####@####.#### 2002-07-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] How does nanowm add itself to the root window's "eventclients"
list!
From: Alex Holden ####@####.#### Date: 26 Jul 2002 09:54:46 -0000 Message-Id: <3D41193F.9080302@linuxhacker.org> wang wrote: > When I'm reading nanowm.c,I find that the window > we select for event is the root window.as we known, Only child update events, ie. it's interested in top level windows being mapped and unmapped. > the window,but what confuse me is that I can't find > the code which add the client nanowm to the "eventclients" > list of root window. > When and where does nanowm do this adding job? When it selects for child update events on the root window: GrSelectEvents(GR_ROOT_WINDOW_ID, GR_EVENT_MASK_CHLD_UPDATE); The adding of the client to the window's event client list happens in the GrSelectEvents() function in srvfunc.c. -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |