aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-08-02 20:09:53 +0000
committerGitHub <noreply@github.com>2020-08-02 20:09:53 +0000
commit8b5787a21e4b89464fa1c1a8d8cea1b161cec8af (patch)
treefa4d86ab3965ee5b66439ce3d01c17d95dee3597
parentd55d09ee682af01db8ee1cb16d6822923578c912 (diff)
downloadr-alacritty-8b5787a21e4b89464fa1c1a8d8cea1b161cec8af.tar.gz
r-alacritty-8b5787a21e4b89464fa1c1a8d8cea1b161cec8af.tar.bz2
r-alacritty-8b5787a21e4b89464fa1c1a8d8cea1b161cec8af.zip
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.
-rw-r--r--CHANGELOG.md4
-rw-r--r--alacritty/src/window.rs2
2 files changed, 5 insertions, 1 deletions
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<u32>) {
+ pub fn set_outer_position(&self, pos: PhysicalPosition<i32>) {
self.window().set_outer_position(pos);
}