change build.yml and support window-dragging=no

This commit is contained in:
stax76
2023-10-26 17:23:38 +02:00
parent d7e1e32654
commit ea8944c1cc
2 changed files with 6 additions and 5 deletions

View File

@@ -1252,7 +1252,8 @@ public partial class MainForm : Form
if (IsCursorPosDifferent(_mouseDownLocation) &&
WindowState == FormWindowState.Normal &&
e.Button == MouseButtons.Left && !IsMouseInOsc())
e.Button == MouseButtons.Left && !IsMouseInOsc() &&
Player.GetPropertyBool("window-dragging"))
{
var HTCAPTION = new IntPtr(2);
var WM_NCLBUTTONDOWN = 0xA1;