mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
Wayland: commit frame surface on resize (#635)
This commit is contained in:
committed by
Francesca Frangipane
parent
c8e339fe6d
commit
102ed3b800
@@ -1,5 +1,7 @@
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- Fixed graphical glitches when resizing on Wayland
|
||||||
|
|
||||||
# Version 0.17.2 (2018-08-19)
|
# Version 0.17.2 (2018-08-19)
|
||||||
|
|
||||||
- On macOS, fix `<C-Tab>` so applications receive the event.
|
- On macOS, fix `<C-Tab>` so applications receive the event.
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ use sctk::reexports::client::{ConnectError, Display, EventQueue, GlobalEvent, Pr
|
|||||||
use sctk::Environment;
|
use sctk::Environment;
|
||||||
|
|
||||||
use sctk::reexports::client::protocol::wl_display::RequestsTrait as DisplayRequests;
|
use sctk::reexports::client::protocol::wl_display::RequestsTrait as DisplayRequests;
|
||||||
|
use sctk::reexports::client::protocol::wl_surface::RequestsTrait;
|
||||||
|
|
||||||
pub struct EventsLoopSink {
|
pub struct EventsLoopSink {
|
||||||
buffer: VecDeque<::Event>,
|
buffer: VecDeque<::Event>,
|
||||||
@@ -249,6 +250,9 @@ impl EventsLoop {
|
|||||||
*size = (w, h);
|
*size = (w, h);
|
||||||
} else if frame_refresh {
|
} else if frame_refresh {
|
||||||
frame.refresh();
|
frame.refresh();
|
||||||
|
if !refresh {
|
||||||
|
frame.surface().commit()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let Some(dpi) = new_dpi {
|
if let Some(dpi) = new_dpi {
|
||||||
|
|||||||
Reference in New Issue
Block a user