mirror of
https://github.com/alacritty/alacritty.git
synced 2025-08-14 22:22:19 -04:00
parent
b1032bcc6b
commit
0f96a62218
4 changed files with 438 additions and 344 deletions
|
@ -36,6 +36,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
working directory as long as linprocfs(5) is mounted on `/compat/linux/proc`
|
working directory as long as linprocfs(5) is mounted on `/compat/linux/proc`
|
||||||
- Fix lingering Alacritty window after child process has exited
|
- Fix lingering Alacritty window after child process has exited
|
||||||
- Growing the terminal while scrolled up will no longer move the content down
|
- Growing the terminal while scrolled up will no longer move the content down
|
||||||
|
- Support for alternate keyboard layouts on macOS
|
||||||
|
- Slow startup time on some X11 systems
|
||||||
|
- The AltGr key no longer sends escapes (like Alt)
|
||||||
|
|
||||||
## Version 0.2.9
|
## Version 0.2.9
|
||||||
|
|
||||||
|
|
763
Cargo.lock
generated
763
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -42,7 +42,7 @@ clap = "2"
|
||||||
fnv = "1"
|
fnv = "1"
|
||||||
unicode-width = "0.1"
|
unicode-width = "0.1"
|
||||||
arraydeque = "0.4"
|
arraydeque = "0.4"
|
||||||
glutin = { version = "0.19", features = ["icon_loading"] }
|
glutin = { version = "0.20", features = ["icon_loading"] }
|
||||||
env_logger = "0.6.0"
|
env_logger = "0.6.0"
|
||||||
base64 = "0.10.0"
|
base64 = "0.10.0"
|
||||||
static_assertions = "0.3.0"
|
static_assertions = "0.3.0"
|
||||||
|
@ -67,7 +67,7 @@ dunce = "0.1"
|
||||||
dirs = "1.0"
|
dirs = "1.0"
|
||||||
widestring = "0.4"
|
widestring = "0.4"
|
||||||
mio-anonymous-pipes = "0.1"
|
mio-anonymous-pipes = "0.1"
|
||||||
image = "0.20.0"
|
image = "0.21.0"
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
objc = "0.2.2"
|
objc = "0.2.2"
|
||||||
|
|
|
@ -15,7 +15,6 @@ use std::convert::From;
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
|
|
||||||
use crate::gl;
|
use crate::gl;
|
||||||
use glutin::GlContext;
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
use glutin::Icon;
|
use glutin::Icon;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
@ -23,6 +22,7 @@ use image::ImageFormat;
|
||||||
use glutin::{
|
use glutin::{
|
||||||
self, ContextBuilder, ControlFlow, Event, EventsLoop,
|
self, ContextBuilder, ControlFlow, Event, EventsLoop,
|
||||||
MouseCursor as GlutinMouseCursor, WindowBuilder,
|
MouseCursor as GlutinMouseCursor, WindowBuilder,
|
||||||
|
ContextTrait,
|
||||||
};
|
};
|
||||||
use glutin::dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize};
|
use glutin::dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize};
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ type Result<T> = ::std::result::Result<T, Error>;
|
||||||
/// Wraps the underlying windowing library to provide a stable API in Alacritty
|
/// Wraps the underlying windowing library to provide a stable API in Alacritty
|
||||||
pub struct Window {
|
pub struct Window {
|
||||||
event_loop: EventsLoop,
|
event_loop: EventsLoop,
|
||||||
window: glutin::GlWindow,
|
window: glutin::WindowedContext,
|
||||||
mouse_visible: bool,
|
mouse_visible: bool,
|
||||||
|
|
||||||
/// Whether or not the window is the focused window.
|
/// Whether or not the window is the focused window.
|
||||||
|
@ -119,12 +119,12 @@ fn create_gl_window(
|
||||||
window: WindowBuilder,
|
window: WindowBuilder,
|
||||||
event_loop: &EventsLoop,
|
event_loop: &EventsLoop,
|
||||||
srgb: bool,
|
srgb: bool,
|
||||||
) -> ::std::result::Result<glutin::GlWindow, glutin::CreationError> {
|
) -> ::std::result::Result<glutin::WindowedContext, glutin::CreationError> {
|
||||||
let context = ContextBuilder::new()
|
ContextBuilder::new()
|
||||||
.with_srgb(srgb)
|
.with_srgb(srgb)
|
||||||
.with_vsync(true)
|
.with_vsync(true)
|
||||||
.with_hardware_acceleration(None);
|
.with_hardware_acceleration(None)
|
||||||
::glutin::GlWindow::new(window, context, event_loop)
|
.build_windowed(window, event_loop)
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Window {
|
impl Window {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue