On windows, open the console window before the main window, which should mean that the main window gets focus

This commit is contained in:
Bart van Strien
2013-05-24 22:22:40 +02:00
parent 005344dddd
commit 7b923dc75b
2 changed files with 12 additions and 12 deletions
+5 -5
View File
@@ -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()