mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-25 03:35:59 +01:00
csgo-vulkan-fix: fix wrong initial class check
This commit is contained in:
parent
aa3517bec5
commit
fadbcdd24b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue