From d08f1d7dbc7b3fc23b81db1ded3314c1cf0dfeb2 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 30 May 2025 10:03:25 +0300 Subject: [PATCH] QVulkanWindow: Force render on paint event When a paint event is dispatched from the platform, application code should redraw contents and submit a frame regardless of whether contents have changed. This fixes an issue where the window does not always update after being minimized on wayland, and would also be needed for non-composited X11 when exposure changes. Pick-to: 6.10 6.9 6.8 Change-Id: I506872f439e0c16d71ad13def1c8b58a0491dd73 Reviewed-by: Laszlo Agocs --- src/gui/vulkan/qvulkanwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/vulkan/qvulkanwindow.cpp b/src/gui/vulkan/qvulkanwindow.cpp index 4d9bbe21b59..a1457006888 100644 --- a/src/gui/vulkan/qvulkanwindow.cpp +++ b/src/gui/vulkan/qvulkanwindow.cpp @@ -1552,6 +1552,7 @@ bool QVulkanWindow::event(QEvent *e) Q_D(QVulkanWindow); switch (e->type()) { + case QEvent::Paint: case QEvent::UpdateRequest: d->beginFrame(); break;