From fadbcdd24b6f24b169056ed6fcf43d98ef405f87 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 13 Oct 2023 21:33:00 +0100 Subject: [PATCH] csgo-vulkan-fix: fix wrong initial class check --- csgo-vulkan-fix/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csgo-vulkan-fix/main.cpp b/csgo-vulkan-fix/main.cpp index 4c57671..0cb7dbd 100644 --- a/csgo-vulkan-fix/main.cpp +++ b/csgo-vulkan-fix/main.cpp @@ -41,7 +41,7 @@ void hkNotifyMotion(wlr_seat* wlr_seat, uint32_t time_msec, double sx, double sy static auto* const RESX = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:csgo-vulkan-fix:res_w")->intValue; static auto* const RESY = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:csgo-vulkan-fix:res_h")->intValue; - if (g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->m_szInitialClass == "csgo_linux64" && g_pCompositor->m_pLastMonitor) { + if (g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->m_szInitialClass == "cs2" && g_pCompositor->m_pLastMonitor) { // fix the coords sx *= *RESX / g_pCompositor->m_pLastMonitor->vecSize.x; sy *= *RESY / g_pCompositor->m_pLastMonitor->vecSize.y;