mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
On windows, open the console window before the main window, which should mean that the main window gets focus
This commit is contained in:
@@ -347,6 +347,11 @@ function love.init()
|
||||
love.createhandlers()
|
||||
end
|
||||
|
||||
-- Console hack
|
||||
if c.console and love._openConsole then
|
||||
love._openConsole()
|
||||
end
|
||||
|
||||
-- Setup screen here.
|
||||
local has_window = false
|
||||
if c.screen and c.modules.window then
|
||||
@@ -366,11 +371,6 @@ function love.init()
|
||||
love.window.setCaption(c.title)
|
||||
end
|
||||
|
||||
-- Console hack
|
||||
if c.console and love._openConsole then
|
||||
love._openConsole()
|
||||
end
|
||||
|
||||
-- Our first timestep, because screen creation can take some time
|
||||
if love.timer then
|
||||
love.timer.step()
|
||||
|
||||
Reference in New Issue
Block a user