aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/renderer
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-07-13 11:06:54 +0400
committerKirill Chibisov <contact@kchibisov.com>2023-09-04 03:01:12 +0400
commita189861880aafcce760e3a142bc2d391f2801f64 (patch)
tree5a9e82c1577ef60deb328e369cf56122f2088933 /alacritty/src/renderer
parentbbc02004b85c8b2c0c65c7031527fded4efe6c04 (diff)
downloadr-alacritty-a189861880aafcce760e3a142bc2d391f2801f64.tar.gz
r-alacritty-a189861880aafcce760e3a142bc2d391f2801f64.tar.bz2
r-alacritty-a189861880aafcce760e3a142bc2d391f2801f64.zip
Update winit to 0.29.1-beta
Make use of new winit frame throttling mechanism used in RedrawRequested, which removes the need for having Wayland queue to ask for the frame callbacks. Fixes #7011.
Diffstat (limited to 'alacritty/src/renderer')
-rw-r--r--alacritty/src/renderer/mod.rs1
-rw-r--r--alacritty/src/renderer/platform.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs
index 98e29542..87ccf2f6 100644
--- a/alacritty/src/renderer/mod.rs
+++ b/alacritty/src/renderer/mod.rs
@@ -254,7 +254,6 @@ impl Renderer {
}
}
- #[cfg(not(any(target_os = "macos", windows)))]
pub fn finish(&self) {
unsafe {
gl::Finish();
diff --git a/alacritty/src/renderer/platform.rs b/alacritty/src/renderer/platform.rs
index 10c17cb7..495e837e 100644
--- a/alacritty/src/renderer/platform.rs
+++ b/alacritty/src/renderer/platform.rs
@@ -12,10 +12,10 @@ use glutin::prelude::*;
use glutin::surface::{Surface, SurfaceAttributesBuilder, WindowSurface};
use log::{debug, LevelFilter};
-use raw_window_handle::{RawDisplayHandle, RawWindowHandle};
use winit::dpi::PhysicalSize;
#[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))]
use winit::platform::x11;
+use winit::window::raw_window_handle::{RawDisplayHandle, RawWindowHandle};
/// Create the GL display.
pub fn create_gl_display(