v2.3.38 Fixed Chinese input and gtk3 issues for linux packagin,

And Windows Drag Region
This commit is contained in:
杨红岩 2023-01-20 13:50:26 +08:00
parent 63b4c02ed0
commit 09ba99694a

View File

@ -143,11 +143,15 @@ func (m *LCLBrowserWindow) doOnRenderCompMsg(message *types.TMessage, lResult *t
}
}
//每一次拖拽区域改变都需要重新设置
func (m *LCLBrowserWindow) setDraggableRegions() {
//在主线程中运行
QueueAsyncCall(func(id int) {
if m.cwcap.rgn == nil {
//第一次时创建RGN
m.cwcap.rgn = WinCreateRectRgn(0, 0, 0, 0)
} else {
//每次重置RGN
WinSetRectRgn(m.cwcap.rgn, 0, 0, 0, 0)
}
for i := 0; i < m.cwcap.regions.RegionsCount(); i++ {