With the following chain of events :
vkQueuePresent() <- Surface resize vkQueuePresent()
We should be able to report SUBOPTIMAL or OUT_OF_DATE on the second vkQueuePresent() call. Currently we only look at X11 events in the vkAcquireNextImage() path so we're not able to report this.
This change checks the queue of events and process any available ones to update the swapchain status.
Signed-off-by: Lionel Landwerlin firstname.lastname@example.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111097 Cc: email@example.com