Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Simplify focused modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Mar 31, 2024
1 parent c596504 commit eb85f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Adwaita/View/Modifiers/InspectorWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ extension View {
focused.wrappedValue = newValue
}
}
if focused.wrappedValue != (gtk_event_controller_focus_contains_focus(controller.pointer) != 0) {
if gtk_event_controller_focus_contains_focus(controller.pointer) == 0, focused.wrappedValue {
gtk_widget_grab_focus(storage.pointer?.cast())
}
}
Expand Down

0 comments on commit eb85f93

Please sign in to comment.