Re: [PATCH 2/2] Define global handler on display creation

2011-02-03 Thread twied
Hi, I think I'd rather move the wl_display_iterate() that dispatches those events to wl_display_run() instead and keep display_set_global_handler() around as it is now. Do you that's possible? Won't work IMO: display_create(...) { ... wl_display_connect(...) ... wl_display_iterat

Re: [PATCH 2/2] Define global handler on display creation

2011-02-03 Thread Kristian Høgsberg
On Fri, Jan 28, 2011 at 7:30 PM, Tim Wiederhake wrote: > Otherwise the initial announcement of interfaces gets lost. You're right, the initial global object announcements happen in display_create and that's a problem if you're trying to look up a custom interface. I think I'd rather move the wl_

[PATCH 2/2] Define global handler on display creation

2011-01-28 Thread Tim Wiederhake
Otherwise the initial announcement of interfaces gets lost. --- clients/dnd.c |4 +--- clients/eventdemo.c |2 +- clients/flower.c|2 +- clients/gears.c |2 +- clients/image.c |2 +- clients/resizor.c |2 +- clients/smoke.c |2 +- clients/termina