mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Wayland: commit frame surface on resize (#635)
This commit is contained in:
parent
c8e339fe6d
commit
102ed3b800
|
@ -1,5 +1,7 @@
|
|||
# Unreleased
|
||||
|
||||
- Fixed graphical glitches when resizing on Wayland
|
||||
|
||||
# Version 0.17.2 (2018-08-19)
|
||||
|
||||
- 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::reexports::client::protocol::wl_display::RequestsTrait as DisplayRequests;
|
||||
use sctk::reexports::client::protocol::wl_surface::RequestsTrait;
|
||||
|
||||
pub struct EventsLoopSink {
|
||||
buffer: VecDeque<::Event>,
|
||||
|
@ -249,6 +250,9 @@ impl EventsLoop {
|
|||
*size = (w, h);
|
||||
} else if frame_refresh {
|
||||
frame.refresh();
|
||||
if !refresh {
|
||||
frame.surface().commit()
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(dpi) = new_dpi {
|
||||
|
|
Loading…
Reference in a new issue