From 1edbca1775a054a47ae3e0762519dd1f7e335e48 Mon Sep 17 00:00:00 2001 From: trimental Date: Fri, 21 Sep 2018 01:48:36 +0800 Subject: [PATCH] =?UTF-8?q?Wayland:=20use=20`init=5Ffrom=5Fenv()`=20to=20c?= =?UTF-8?q?reate=20windows=20and=20allow=20server-sid=E2=80=A6=20(#655)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Wayland: use `init_from_env()` to create windows and allow server-side decorations * Change the CHANGELOG.md entrys wording --- CHANGELOG.md | 1 + src/platform/linux/wayland/window.rs | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e345620..66ff5391 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Unreleased +- On Wayland, windows will use server-side decorations when available. - Added support for F16-F24 keys. - Fixed graphical glitches when resizing on Wayland. - On Windows, fix freezes when performing certain actions after a window resize has been triggered. Reintroduces some visual artifacts when resizing. diff --git a/src/platform/linux/wayland/window.rs b/src/platform/linux/wayland/window.rs index f1ad26df..c373cbd3 100644 --- a/src/platform/linux/wayland/window.rs +++ b/src/platform/linux/wayland/window.rs @@ -69,13 +69,10 @@ impl Window { let window_store = evlp.store.clone(); let my_surface = surface.clone(); - let mut frame = SWindow::::init( + let mut frame = SWindow::::init_from_env( + &evlp.env, surface.clone(), (width, height), - &evlp.env.compositor, - &evlp.env.subcompositor, - &evlp.env.shm, - &evlp.env.shell, move |event, ()| match event { WEvent::Configure { new_size, .. } => { let mut store = window_store.lock().unwrap();