Skip to content

Commit

Permalink
Merge pull request #820 from valinet/patch-1
Browse files Browse the repository at this point in the history
Compatibility with Windows 11 with classic taskbar
  • Loading branch information
ChrisAnd1998 committed Nov 7, 2021
2 parents 570f650 + d8d994e commit 7e212e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TaskbarX/TaskbarX/TaskbarCenter.vb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ Public Class TaskbarCenter

Public Shared Function GetLocation(ByVal acc As Accessibility.IAccessible, ByVal idChild As Integer) As RectangleX
Dim rect As New RectangleX
acc.accLocation(rect.left, rect.top, rect.width, rect.height, idChild)
If Not IsNothing(acc) Then
acc.accLocation(rect.left, rect.top, rect.width, rect.height, idChild)
End If
Return rect
End Function

Expand Down Expand Up @@ -968,4 +970,4 @@ Public Class TaskbarCenter

#End Region

End Class
End Class

0 comments on commit 7e212e6

Please sign in to comment.