You've already forked rdsspy-lua-host
mirror of
https://github.com/KubaPro010/rdsspy-lua-host.git
synced 2026-02-27 02:45:21 +01:00
don't call lua on movex/movey
This commit is contained in:
2
plugin.c
2
plugin.c
@@ -608,13 +608,11 @@ __declspec(dllexport) void WINAPI Command(const char* Cmd, const char* Param) {
|
||||
RECT rect; // get rect
|
||||
if (GetWindowRect(hWnd, &rect)) SetWindowPos(hWnd, NULL, rect.left+atoi(Param), rect.top, 0, 0, SWP_NOSIZE);
|
||||
}
|
||||
lua_call_command(Cmd, Param);
|
||||
} else if(_stricmp(Cmd, "MOVEY") == 0) {
|
||||
if(sticky != 0) {
|
||||
RECT rect; // get rect
|
||||
if (GetWindowRect(hWnd, &rect)) SetWindowPos(hWnd, NULL, rect.left, rect.top+atoi(Param), 0, 0, SWP_NOSIZE);
|
||||
}
|
||||
lua_call_command(Cmd, Param);
|
||||
} else lua_call_command(Cmd, Param);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user