From c43f2f33c7061750c526605dca79225a740528e9 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Fri, 2 Jan 2026 22:49:45 +0100 Subject: [PATCH] don't call lua on movex/movey --- plugin.c | 2 -- plugin.lua | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin.c b/plugin.c index f374e5c..7a8ada0 100644 --- a/plugin.c +++ b/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); } diff --git a/plugin.lua b/plugin.lua index 8c94db8..c311728 100644 --- a/plugin.lua +++ b/plugin.lua @@ -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