diff options
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r-- | src/config/mod.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 14ebc87d..3cd33eac 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -485,6 +485,10 @@ impl WindowConfig { pub fn start_maximized(&self) -> bool { self.start_maximized } + + pub fn position(&self) -> Option<Delta<i32>> { + self.position + } } /// Top-level config type @@ -1794,11 +1798,6 @@ impl Config { self.dimensions.unwrap_or(self.window.dimensions) } - #[inline] - pub fn position(&self) -> Option<Delta<i32>> { - self.window.position - } - /// Get window config #[inline] pub fn window(&self) -> &WindowConfig { |