Skip to content

Commit 486b847

Browse files
authored
Don't apply fullscreenOffset in mission control
1 parent d6d24ba commit 486b847

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Source/RoundedCorners.spoon/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ end
137137
-- Draw the corners
138138
function obj:render(topOnly)
139139
local radius = self.radius
140+
local mission = hs.spaces.focusedSpace() == 1
140141
hs.fnutils.each(self:getScreens(), function(screen)
141142
local windows = hs.window.filter.new():setScreens(screen:id()):getWindows()
142-
local offset = screen:id() == 1 and #windows > 0 and windows[1]:isFullscreen() and self.fullscreenOffset or 0
143+
local offset = not mission and screen:id() == 1 and #windows > 0 and windows[1]:isFullscreen() and self.fullscreenOffset or 0
143144
local screenFrame = screen:fullFrame()
144145
local cornerData = {
145146
{ frame={x=screenFrame.x, y=screenFrame.y}, center={x=radius,y=radius} },

0 commit comments

Comments
 (0)