toggleable fullscreen button

This commit is contained in:
2025-10-25 16:10:49 -07:00
parent 06bc628ecf
commit b464270e60
4 changed files with 7 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ while true do
dragging = win
resizing = true
bringtofront(indx)
elseif ((y - 1 == data[4] and x + 2 <= data[3] and x + w >= data[3] and data[2] == 1 and win.decorations) or (y <= data[4] and x <= data[3] and y + h > data[4] and x + w > data[3] and key[keys["leftAlt"]] and win.draggable)) and not win.isFullscreen then
elseif ((y - 1 == data[4] and x + 1 + (win.fullscreenButton and 1 or 0) <= data[3] and x + w >= data[3] and data[2] == 1 and win.decorations) or (y <= data[4] and x <= data[3] and y + h > data[4] and x + w > data[3] and key[keys["leftAlt"]] and win.draggable)) and not win.isFullscreen then
dragging = win
offsetX = x - data[3]
offsetY = y - data[4]
@@ -60,7 +60,7 @@ while true do
threading.addThread(function() win.closeRequested() end)
bringtofront(indx)
break
elseif y - 1 == data[4] and x+1 == data[3] and win.decorations then
elseif y - 1 == data[4] and x+1 == data[3] and win.decorations and win.fullscreenButton then
threading.addThread(function() win.fullscreen() end)
bringtofront(indx)
break