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 <laszlo.agocs@qt.io>
This commit is contained in:
parent
f27588348b
commit
d08f1d7dbc
@ -1552,6 +1552,7 @@ bool QVulkanWindow::event(QEvent *e)
|
||||
Q_D(QVulkanWindow);
|
||||
|
||||
switch (e->type()) {
|
||||
case QEvent::Paint:
|
||||
case QEvent::UpdateRequest:
|
||||
d->beginFrame();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user