From 8b5787a21e4b89464fa1c1a8d8cea1b161cec8af Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 2 Aug 2020 20:09:53 +0000 Subject: Fix negative window position This resolves an issue where negative window positions set in the configuration file would not place the Alacritty window in the correct location. Fixes #4061. --- CHANGELOG.md | 4 ++++ alacritty/src/window.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0db7063..4277034a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Cursors are now inverted when their fixed color is similar to the cell's background +### Fixed + +- Incorrect window location with negative `window.position` config options + ## 0.5.0 ### Packaging diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs index 172d5acc..bfe7360a 100644 --- a/alacritty/src/window.rs +++ b/alacritty/src/window.rs @@ -334,7 +334,7 @@ impl Window { #[cfg(windows)] pub fn set_urgent(&self, _is_urgent: bool) {} - pub fn set_outer_position(&self, pos: PhysicalPosition) { + pub fn set_outer_position(&self, pos: PhysicalPosition) { self.window().set_outer_position(pos); } -- cgit