- Timestamp:
- Nov 4, 2021, 4:26:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/DrawDlg.pas
r412 r413 128 128 procedure TDrawDlg.MouseDown(Button: TMouseButton; Shift: TShiftState; X, 129 129 Y: Integer); 130 var 131 MousePos1: TPoint; 132 MousePos2: TPoint; 130 133 {$IFDEF LINUX} 131 var132 134 MousePosNew: TPoint; 133 135 NewFormPos: TPoint; 134 136 {$ENDIF} 135 137 begin 136 inherited; 138 MousePos1 := DpiMouse.CursorPos; 139 inherited; 140 MousePos2 := DpiMouse.CursorPos; 137 141 {$IFDEF LINUX} 138 142 // Only if client is not doing own mouse move handling … … 147 151 MousePosNew := DpiMouse.CursorPos; 148 152 // Activate move only if mouse position was not changed during inherited call 149 if (MousePos New.X = MoveMousePos.X) and (MousePosNew.Y = MoveMousePos.Y) then begin153 if (MousePos1.X = MousePos2.X) and (MousePos1.Y = MousePos2.Y) then begin 150 154 MoveActive := True; 151 155 end; … … 193 197 {$IFDEF LCLGTK2} 194 198 // GTK2 bug workaround https://bugs.freepascal.org/view.php?id=35720 195 if Visible then LastMouse.WinControl := Self ;199 if Visible then LastMouse.WinControl := Self.GetNativeForm; 196 200 {$ENDIF} 197 201 end;
Note:
See TracChangeset
for help on using the changeset viewer.