mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
Wayland: use init_from_env() to create windows and allow server-sid… (#655)
* Wayland: use `init_from_env()` to create windows and allow server-side decorations * Change the CHANGELOG.md entrys wording
This commit is contained in:
committed by
Francesca Plebani
parent
5a0bc016e7
commit
1edbca1775
@@ -1,4 +1,5 @@
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
- On Wayland, windows will use server-side decorations when available.
|
||||||
- Added support for F16-F24 keys.
|
- Added support for F16-F24 keys.
|
||||||
- Fixed graphical glitches when resizing on Wayland.
|
- 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.
|
- On Windows, fix freezes when performing certain actions after a window resize has been triggered. Reintroduces some visual artifacts when resizing.
|
||||||
|
|||||||
@@ -69,13 +69,10 @@ impl Window {
|
|||||||
|
|
||||||
let window_store = evlp.store.clone();
|
let window_store = evlp.store.clone();
|
||||||
let my_surface = surface.clone();
|
let my_surface = surface.clone();
|
||||||
let mut frame = SWindow::<BasicFrame>::init(
|
let mut frame = SWindow::<BasicFrame>::init_from_env(
|
||||||
|
&evlp.env,
|
||||||
surface.clone(),
|
surface.clone(),
|
||||||
(width, height),
|
(width, height),
|
||||||
&evlp.env.compositor,
|
|
||||||
&evlp.env.subcompositor,
|
|
||||||
&evlp.env.shm,
|
|
||||||
&evlp.env.shell,
|
|
||||||
move |event, ()| match event {
|
move |event, ()| match event {
|
||||||
WEvent::Configure { new_size, .. } => {
|
WEvent::Configure { new_size, .. } => {
|
||||||
let mut store = window_store.lock().unwrap();
|
let mut store = window_store.lock().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user