Make non-borderless mode work
This commit is contained in:
+9
-7
@@ -400,13 +400,6 @@ function core.init()
|
||||
end
|
||||
end
|
||||
|
||||
core.window_borderless = false
|
||||
core.hit_test_title_height = 0
|
||||
if config.borderless then
|
||||
system.set_window_bordered(false)
|
||||
core.window_borderless = true
|
||||
end
|
||||
|
||||
core.frame_start = 0
|
||||
core.clip_rect_stack = {{ 0,0,0,0 }}
|
||||
core.log_items = {}
|
||||
@@ -474,6 +467,10 @@ function core.init()
|
||||
command.perform("core:open-log")
|
||||
end
|
||||
|
||||
system.set_window_bordered(not config.borderless)
|
||||
core.title_view:configure_hit_test(config.borderless)
|
||||
core.title_view.visible = config.borderless
|
||||
|
||||
if #plugins_refuse_list.userdir.plugins > 0 or #plugins_refuse_list.datadir.plugins > 0 then
|
||||
local opt = {
|
||||
{ font = style.font, text = "Exit", default_no = true },
|
||||
@@ -696,6 +693,11 @@ function core.set_active_view(view)
|
||||
end
|
||||
|
||||
|
||||
function core.show_title_bar(show)
|
||||
core.title_view.visible = show
|
||||
end
|
||||
|
||||
|
||||
function core.add_thread(f, weak_ref)
|
||||
local key = weak_ref or #core.threads + 1
|
||||
local fn = function() return core.try(f) end
|
||||
|
||||
Reference in New Issue
Block a user