Skip to content

Commit

Permalink
fix: avoid text flickering on main ui (closes #197)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Apr 8, 2020
1 parent 584b3cd commit 4eb9db0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/main-window/ThumbnailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class ThumbnailView: NSStackView {
label.string = element.title
// workaround: setting string on NSTextView change the font (most likely a Cocoa bug)
label.font = Preferences.font
// force a display to avoid flickering; see https://github.com/lwouis/alt-tab-macos/issues/197
label.display()
}
assignIfDifferent(&hiddenIcon.isHidden, !window_!.isHidden)
assignIfDifferent(&minimizedIcon.isHidden, !window_!.isMinimized)
Expand Down

0 comments on commit 4eb9db0

Please sign in to comment.