csgo-vulkan-fix: fix for hyprland@7f35f33

This commit is contained in:
Vaxry 2023-10-20 20:22:37 +01:00
parent 48be13fcb9
commit add116cb3c

View file

@ -65,6 +65,8 @@ void hkSetWindowSize(wlr_xwayland_surface* surface, int16_t x, int16_t y, uint16
if (PWINDOW && PWINDOW->m_szInitialClass == "cs2") { if (PWINDOW && PWINDOW->m_szInitialClass == "cs2") {
width = *RESX; width = *RESX;
height = *RESY; height = *RESY;
CWLSurface::surfaceFromWlr(SURF)->m_bFillIgnoreSmall = true;
} }
(*(origSurfaceSize)g_pSurfaceSizeHook->m_pOriginal)(surface, x, y, width, height); (*(origSurfaceSize)g_pSurfaceSizeHook->m_pOriginal)(surface, x, y, width, height);