Move wakeup handler to per-fd not per-Screen

Previously we had one wakeup handler per Screen,
and if multiple Screens shared the same DRM fd we
would call the wakeup handler multiple times for
the same DRM page flip event.

The second drmHandleEvent call would hang because
the event had already been consumed by the
preceeding drmHandleEvent call.

With this change we have one wakeup handler per
fd, so there is no possibility of them conflicting.

This fixes page flipping in the Screen-per-CRTC
mode.

Change-Id: Ib88ac94daa5325f31b2bff4b1a2867f1efbf2d45
3 files changed
tree: e2f86ab9552752f9fa939f304377427458349db8
  1. man/
  2. src/
  3. .gitignore
  4. autogen.sh
  5. configure.ac
  6. COPYING
  7. Makefile.am
  8. NEWS
  9. README