On Sun, 18 May 2003 21:34:52 +0200 Marc Menem <[EMAIL PROTECTED]>
babbled:
> Hi,
>
> I've checkouted the SPLIT branch of Ecore
> yesterday ( may 17th ), and I am having trouble
> upgrading my apps to work with this new version.
>
> Actually I am trying to add functionality to
> rephorm's standalone version of e's iconbar. I'd
> like it to cache the currently launched app's, so
> clicking on the icon of an open app would raise it
> rather than launching it again.
>
> I'm trying to bind callbacks to CreateNotify,
> DestroyNotify, etc. It woked ok with the old
> ecore, I didn't manage to have it working with the
> new one. Browsing through ecore_x's source I
> didn't find the answer. But as in his "state of
> the E-nion" raster says that ecore has wrappers
> for all x events, I assumed this should work.
stubs there - not fully complete :)
u want:
ecore_x_window_sniff(the_root_window_id);
to "sniff" for create notifies etc.
when a window gets created do a
ecore_x_window_client_sniff(client_window_that_was_created);
to start listening in on events on that client... u'll want to listen for
propertynotify events etc. to know when it got name, class, title etc. set because
they wont be set when its created.
u can get a list of all root windows with
Ecore_X_Window *roots;
int num;
roots = ecore_x_window_root_list(&num);
don' forget to free(roots); when you're done with them :) (if you ever do get done).
remember x can have MORE than 1 root window! :)
> Here is what my code looks like:
>
>
>
> main()
> {
> int x, y, w, h;
> char buf[2048];
>
> ecore_init();
> ecore_evas_init();
> ee =
> ecore_evas_software_x11_new(NULL,0,0,0,50,100);
> ecore_evas_callback_mouse_out_set(ee,window_leave);
> ecore_evas_callback_resize_set(ee, resize);
> ecore_evas_callback_move_set(ee, resize);
>
> ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT,
> cb_exit, ee);
>
> ecore_evas_callback_delete_request_set(ee,
> cb_exit);
>
> ecore_event_handler_add(ECORE_X_EVENT_KEY_UP,
> key_up, NULL);
> ecore_event_handler_add(ECORE_X_EVENT_WINDOW_CREATE,
> window_create, NULL);
> ...
>
> The last two lines are not working, the events
> sent are never sent. Did I forget anything ?
>
>
> btw, what is an event filter ? I don't understand
> what the command ecore_event_filter_add is
> supposed to do.
before events are processed by the event loop u can set up a complex callback system
with filters to "delete" events u don't want based on whats already there, info int he
event etc. this gets done before event callbacks happen. its a great way of weeding
out lots of useless calls o callbacks that u will need to wed out later anyway. :)
>
> thanks
> Marc
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: eBay
> Get office equipment for less on eBay!
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> _______________________________________________
> enlightenment-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
The Rasterman (Carsten Haitzler) [EMAIL PROTECTED]
熊耳 [EMAIL PROTECTED]
Mobile Phone: +61 (0)413 451 899 Home Phone: 02 9698 8615
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel