Skip to content

Commit

Permalink
fix: make maximize workaround windows specific (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-heinrich authored Nov 15, 2023
1 parent 210a121 commit 96b57b2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/uosc/elements/TopBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ function TopBar:init()
self.main_title, self.alt_title = nil, nil

local function get_maximized_command()
return state.border
and (state.fullscreen and 'set fullscreen no;cycle window-maximized' or 'cycle window-maximized')
or 'set window-maximized no;cycle fullscreen'
if state.platform == 'windows' then
return state.border
and (state.fullscreen and 'set fullscreen no;cycle window-maximized' or 'cycle window-maximized')
or 'set window-maximized no;cycle fullscreen'
end
return state.fullormaxed and 'set fullscreen no;set window-maximized no' or 'set window-maximized yes'
end

-- Order aligns from right to left
Expand Down

0 comments on commit 96b57b2

Please sign in to comment.