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.
This commit is contained in:
Christian Duerr 2020-08-02 20:09:53 +00:00 committed by GitHub
parent d55d09ee68
commit 8b5787a21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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);
}