diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index bca47cf1..3678e421 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -440,6 +440,7 @@ import ObjectiveC.runtime @objc public var parentSequence: Int16 = -1 @objc public var standardFoldingInterval: TimeInterval = 0.05 static weak var capturer: OnScreenWidgetView? + @objc static weak var deepestButton: OnScreenWidgetView? @objc init(cmdString: String, buttonLabel: String, shape:String, profile:OSCProfile) { @@ -3638,6 +3639,9 @@ import ObjectiveC.runtime } } if widget.hasNonEditableLabel {widget.setupAtrributedText()} + if widget.widgetType == .touchPad, let deepestButton = OnScreenWidgetView.deepestButton { + widget.superview?.insertSubview(widget, belowSubview: deepestButton) + } }) } } diff --git a/VoidLink/Input/StreamView.m b/VoidLink/Input/StreamView.m index a6ef1027..0d0654f1 100644 --- a/VoidLink/Input/StreamView.m +++ b/VoidLink/Input/StreamView.m @@ -814,6 +814,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5; if (index