mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11: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:
parent
3f33cd1929
commit
3d8c94bae5
|
@ -76,6 +76,10 @@ impl Window {
|
|||
|
||||
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 {
|
||||
ctxt: ctxt,
|
||||
cleanup_signal: cleanup_signal,
|
||||
|
|
Loading…
Reference in a new issue