Wayland: commit frame surface on resize (#635)
This commit is contained in:
parent
c8e339fe6d
commit
102ed3b800
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue