about summary refs log tree commit diff stats
path: root/run.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-07-10 17:14:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-07-10 17:14:38 -0700
commit7f4c5f847b1e7e812d0abc255444b70341e4a827 (patch)
tree88ac6b5e4c88ded1b16d06c90a9c9ec5b10e30e1 /run.lua
parenta8747478ff6452c8bce106ffc9d889886ab202a8 (diff)
downloadview.love-7f4c5f847b1e7e812d0abc255444b70341e4a827.tar.gz
simplify saving settings
We don't ever call one app's settings while Current_app is the other.
Diffstat (limited to 'run.lua')
-rw-r--r--run.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/run.lua b/run.lua
index 59522a5..9a90b61 100644
--- a/run.lua
+++ b/run.lua
@@ -153,9 +153,7 @@ function run.settings()
   if Settings == nil then
     Settings = {}
   end
-  if Current_app == 'run' then
-    Settings.x, Settings.y, Settings.displayindex = App.screen.position()
-  end
+  Settings.x, Settings.y, Settings.displayindex = App.screen.position()
   return {
     x=Settings.x, y=Settings.y, displayindex=Settings.displayindex,
     width=App.screen.width, height=App.screen.height,