Skip to content

Commit d5d26d6

Browse files
committed
Fix Rocky Linux 8 crash that occurs when clicking outside of dialogs
1 parent ca20994 commit d5d26d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/Gtk3/Widgets/Dialog.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ open class Dialog: Window {
122122
func registerSignalHandlers() {
123123
removeSignals()
124124

125-
super.didMoveToParent()
125+
// This seems sensible but causes crashes when people click outside of
126+
// dialogs on Rocky Linux 8. Not quite sure what the root cause is, but
127+
// it presents as a crash inside swift_retain inside SignalBox1.run (when
128+
// the callback gets called) for the "button-press-event" signal.
129+
// super.didMoveToParent()
126130

127131
addSignal(name: "close") { [weak self] () in
128132
guard let self = self else { return }

0 commit comments

Comments
 (0)