aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/display/mod.rs')
-rw-r--r--alacritty/src/display/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/alacritty/src/display/mod.rs b/alacritty/src/display/mod.rs
index 352b1a9c..5bb46b68 100644
--- a/alacritty/src/display/mod.rs
+++ b/alacritty/src/display/mod.rs
@@ -545,7 +545,7 @@ impl Display {
fn swap_buffers(&self) {
#[allow(clippy::single_match)]
- match (self.surface.deref(), &self.context.get()) {
+ let res = match (self.surface.deref(), &self.context.get()) {
#[cfg(not(any(target_os = "macos", windows)))]
(Surface::Egl(surface), PossiblyCurrentContext::Egl(context))
if self.is_wayland && !self.debug_damage =>
@@ -553,8 +553,10 @@ impl Display {
surface.swap_buffers_with_damage(context, &self.damage_rects)
},
(surface, context) => surface.swap_buffers(context),
+ };
+ if let Err(err) = res {
+ debug!("error calling swap_buffers: {}", err);
}
- .expect("failed to swap buffers.");
}
/// Update font size and cell dimensions.