Skip to content

Commit

Permalink
Don't show an empty rectangle in hs.window.switcher if hs.window.swit…
Browse files Browse the repository at this point in the history
…cher.ui.showSelectedThumbnail is false. Closes #1904
  • Loading branch information
cmsj committed Oct 16, 2018
1 parent d47d16d commit 38e12c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions extensions/window/switcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,11 @@ end


local function draw(windows,drawings,ui)
drawings.selRect:show()
if ui.showSelectedThumbnail then drawings.selThumb:show() drawings.selIcon:show() end
if ui.showSelectedThumbnail then
drawings.selRect:show()
drawings.selThumb:show()
drawings.selIcon:show()
end
if ui.showSelectedTitle then
drawings.selTitleRect:show() drawings.selTitleText:show()
end
Expand Down

0 comments on commit 38e12c0

Please sign in to comment.