Don't leak drmModePageFlip events
Don't leak drmModePageFlip events

Tidying up the hack a little to not request an event back from drmModePageFlip
if we know we can't handle it. Otherwise we ended up running out of memory in
the kernel because all the events got leaked.

As it's now two changes, added a quick #if to handle both cases.

sbambrough/xf86-video-armsoc,mdrjr/xf86-video-armsoc,commshare/xf86-video-armsoc,OtherCrashOverride/armsoc-hardkernel,apxii/xf86-video-armsoc,mdrjr/xf86-video-armsoc,OtherCrashOverride/armsoc-hardkernel,mmind/xf86-video-armsoc,markyzq/armsoc-rockchip,freedesktop-unofficial-mirror/xorg__driver__xf86-video-armsoc,mmind/xf86-video-armsoc,freedesktop-unofficial-mirror/xorg__driver__xf86-video-armsoc,xin3liang/xf86-video-armsoc,Popolon/xf86-video-armsoc,markyzq/armsoc-rockchip,xin3liang/xf86-video-armsoc,commshare/xf86-video-armsoc,singulared/xf86-video-armsoc,singulared/xf86-video-armsoc,apxii/xf86-video-armsoc,Popolon/xf86-video-armsoc,sbambrough/xf86-video-armsoc