mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 14:50:04 -04:00
wayland: commit the empty surface at init (#309)
This should trigger the compositor's mechanism for sending a configure event, which should most of the time be processed before any winit user actually tries to draw.
This commit is contained in:
@@ -76,6 +76,10 @@ impl Window {
|
|||||||
|
|
||||||
decorated_id
|
decorated_id
|
||||||
};
|
};
|
||||||
|
// send our configuration to the compositor
|
||||||
|
// if we're in xdg mode, no buffer is attached yet, so this
|
||||||
|
// is fine (and more or less required actually)
|
||||||
|
surface.commit();
|
||||||
let me = Window {
|
let me = Window {
|
||||||
ctxt: ctxt,
|
ctxt: ctxt,
|
||||||
cleanup_signal: cleanup_signal,
|
cleanup_signal: cleanup_signal,
|
||||||
|
|||||||
Reference in New Issue
Block a user