don't call lua on movex/movey

This commit is contained in:
2026-01-02 22:49:45 +01:00
parent b2479a7f42
commit c43f2f33c7
2 changed files with 1 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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