1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-29 01:50:27 +00:00

prepare for lock screen

This commit is contained in:
kepler155c@gmail.com 2019-11-01 16:35:58 -06:00
parent e5a5f76fb3
commit aaab059cee
3 changed files with 7 additions and 2 deletions

View File

@ -264,7 +264,7 @@ kernel.hook('multishell_redraw', function()
write(currentTab.sx - 1,
' ' .. currentTab.title:sub(1, currentTab.width - 1) .. ' ',
_colors.focusBackgroundColor, _colors.focusTextColor)
if not currentTab.isOverview then
if not currentTab.noTerminate then
write(w, closeInd, _colors.backgroundColor, _colors.focusTextColor)
end
end
@ -340,6 +340,7 @@ kernel.hook('kernel_ready', function()
overviewId = multishell.openTab({
path = config.launcher or 'sys/apps/Overview.lua',
isOverview = true,
noTerminate = true,
focused = true,
title = '+',
env = env,

View File

@ -179,6 +179,10 @@ function kernel.run(args)
end
function kernel.raise(uid)
if kernel.getFocused() and kernel.getFocused().pinned then
return false
end
local routine = Util.find(kernel.routines, 'uid', uid)
if routine then

View File

@ -7,7 +7,7 @@ local tween = {
Copyright (c) 2014 Enrique García Cota, Yuichi Tateno, Emmanuel Oga
Licence details: https://opensource.org/licenses/MIT
license details: https://opensource.org/licenses/MIT
]]
}