Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit bb85e62

Browse files
committed
Changes NSWindow to use a NSPanel + NSAccessibilityRoles.PopoverRole
1 parent 3b6d99c commit bb85e62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/ExceptionCaught/ExceptionCaughtAdornmentManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ExceptionCaughtAdornmentManager : IDisposable
4343
private readonly string filePath;
4444
readonly IXPlatAdornmentLayer _exceptionCaughtLayer;
4545
FileLineExtension extension;
46-
NSWindow exceptionCaughtButtonWindow;
46+
NSPanel exceptionCaughtButtonWindow;
4747

4848
public ExceptionCaughtAdornmentManager (ICocoaViewFactory cocoaViewFactory, ICocoaTextView textView)
4949
{
@@ -124,7 +124,8 @@ private void RenderAdornment (FileLineExtension fileLineExtension)
124124
} else {
125125
var editorWindow = textView.VisualElement.Window;
126126
var pointOnScreen = editorWindow.ConvertPointToScreen (textView.VisualElement.ConvertPointToView (new CGPoint (charBound.Left, charBound.TextTop), null));
127-
exceptionCaughtButtonWindow = new NSWindow (CGRect.Empty, NSWindowStyle.Borderless, NSBackingStore.Buffered, false);
127+
exceptionCaughtButtonWindow = new NSPanel (CGRect.Empty, NSWindowStyle.Borderless, NSBackingStore.Buffered, false);
128+
exceptionCaughtButtonWindow.AccessibilityRole = NSAccessibilityRoles.PopoverRole;
128129
editorWindow.AddChildWindow (exceptionCaughtButtonWindow, NSWindowOrderingMode.Above);
129130
exceptionCaughtButtonWindow.IsOpaque = false;
130131
exceptionCaughtButtonWindow.BackgroundColor = NSColor.Clear;

0 commit comments

Comments
 (0)