I encountered an issue related to Screen.Cursor on macOS Ventura (13.0.1):
Lazarus 2.2.5 (rev lazarus_2_2_4-3-g564e1e8244) FPC 3.2.0 x86_64-darwin-cocoa
Setting the cursor using Screen.Cursor does not always work.
You can reproduce the issue using the attached project.
This test project includes a single form with a custom control and a button. The OnClick events of the button and the custom control just switch Screen.Cursor between crDefault and crHourglass.
if Screen.Cursor = crHourGlass then
Screen.Cursor:= crDefault
else
Screen.Cursor:= crHourGlass;
The previous code works on windows but not on macOS (Ventura), after the first click the cursor is set to crHourglass, but if I click again the Cursor still remains crHourglass.
I tested it on 2 different computers, both with macOS Ventura, I cannot test it on previous macOS versions.
Am I doing something wrong?