You've already forked rdsspy-lua-host
mirror of
https://github.com/KubaPro010/rdsspy-lua-host.git
synced 2026-02-26 18:35:01 +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);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
event_count = 0
|
||||
|
||||
---This function should be defined by the user in the script
|
||||
---EXIT, CONFIGURE, SHOW, MINIMIZE, RESTORE commands are not sent to the script
|
||||
---EXIT, CONFIGURE, SHOW, MINIMIZE, RESTORE, MOVEX, MOVEY commands are not sent to the script
|
||||
---@param cmd string
|
||||
---@param param string
|
||||
function command(cmd, param) end
|
||||
|
||||
Reference in New Issue
Block a user