aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display/window.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-01-29 22:41:15 +0000
committerGitHub <noreply@github.com>2021-01-29 22:41:15 +0000
commit73759da0f52f7186181f7284a4c9cb9db0798d59 (patch)
treef8755ed3d22583b2eaab9c994e5ccc48540e1fde /alacritty/src/display/window.rs
parentcb46f0e1ac3baf54b15951762bdf8ffaa38d36c3 (diff)
downloadr-alacritty-73759da0f52f7186181f7284a4c9cb9db0798d59.tar.gz
r-alacritty-73759da0f52f7186181f7284a4c9cb9db0798d59.tar.bz2
r-alacritty-73759da0f52f7186181f7284a4c9cb9db0798d59.zip
Fix segmentation fault on shutdown with Wayland
Fixes #4702.
Diffstat (limited to 'alacritty/src/display/window.rs')
-rw-r--r--alacritty/src/display/window.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/alacritty/src/display/window.rs b/alacritty/src/display/window.rs
index b500e8f2..1bd3525a 100644
--- a/alacritty/src/display/window.rs
+++ b/alacritty/src/display/window.rs
@@ -400,16 +400,6 @@ impl Window {
}
#[cfg(all(feature = "wayland", not(any(target_os = "macos", windows))))]
- pub fn wayland_display(&self) -> Option<*mut std::ffi::c_void> {
- self.window().wayland_display()
- }
-
- #[cfg(not(any(feature = "wayland", target_os = "macos", windows)))]
- pub fn wayland_display(&self) -> Option<*mut std::ffi::c_void> {
- None
- }
-
- #[cfg(all(feature = "wayland", not(any(target_os = "macos", windows))))]
pub fn wayland_surface(&self) -> Option<&Attached<WlSurface>> {
self.wayland_surface.as_ref()
}