ImGui scales instead of resizing on Wayland with GLFW and VULKAN #7671
Closed
Description
Version/Branch of Dear ImGui:
master
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp
Compiler, OS:
Linux + clang
Full config/build information:
No response
Details:
Noticed that window resizing on Wayland results in stretching the ImGui windows offsetting the input as well.
Checking this revealed that err code VK_SUBOPTIMAL_KHR is never raised , this results in the swapchain never being rebuilt.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
// Here's some code anyone can copy and paste to reproduce your issue
if (err == VK_ERROR_OUT_OF_DATE_KHR || err == VK_SUBOPTIMAL_KHR)
{
g_SwapChainRebuild = true;
return;
}