mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 23:19:29 +02:00
GTK3: Fixed setting cursor on widgets.
Closes: #40374. Thanks To: Anton Kavalenka. When the widget doesn't have a window, we fall back to parent's one.
This commit is contained in:
parent
fa8e8eeecf
commit
3256ff9246
@ -3203,7 +3203,10 @@ begin
|
||||
SetWindowCursor(GetContainerWidget^.window, ACursor, False, True)
|
||||
else
|
||||
if Widget^.get_has_window and Gtk3IsGdkWindow(Widget^.window) then
|
||||
SetWindowCursor(Widget^.window, ACursor, False, True);
|
||||
SetWindowCursor(Widget^.window, ACursor, False, True)
|
||||
else // fallback for window-less widgets
|
||||
if Assigned(self.getParent) then
|
||||
Self.getParent.SetCursor(ACursor);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user