Introduce wl_resource_queue_event() for sending events later
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 17 Nov 2011 21:46:36 +0000 (16:46 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 17 Nov 2011 22:52:01 +0000 (17:52 -0500)
commit4abc56bd6d476cf386fcc998d40e3d7753a2b03e
tree5223cfca93756e393b116d1f7a40bec97ba79746
parent3a1e6df39aa34df53c97ce9c7a1bfddf5a97faf3
Introduce wl_resource_queue_event() for sending events later

Some events, such as the display.delete_id, aren't very urgent and we
would like to not always send them immdiately and cause an unnecessary
context switch.  The wl_resource_queue_event() function will place the
event in the connection output buffer but not request the main loop to
poll for writable.  The effect is that the event will just sit in the
output buffer until a more important event comes around and requires
flushing.
src/connection.c
src/connection.h
src/wayland-client.c
src/wayland-server.c
src/wayland-server.h