summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-12-01 21:20:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2008-12-10 12:42:45 +1000
commitd281866b74f7067f2704c278fe9720eafc0ee5ef (patch)
tree9ed2038b179537e549957661ae28afbe7486a6f1 /randr
parent0b4fef6337d88ae8ef05b8b73941350a9007565c (diff)
mi: Clean up CopyGetMasterEvent, re-use the memory.
Alloc an EventList once and then re-use instead of allocing a new event each time we need a master event. There's a trick included: because all the event processing handlers only take an xEvent, init a size 1 EventList and squash the events into this one. Events that have count > 1 must be squished into an xEvent array anyway before passing into the event handlers, so we don't lose anything here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'randr')
0 files changed, 0 insertions, 0 deletions