Fix invalid drop in SHM doc test
Allowing the display to be dropped this early destroys the whole wayland context before we start using it... bad idea.
This commit is contained in:
parent
9e809f85dd
commit
249ae98e0f
|
@ -23,7 +23,7 @@
|
|||
//! use wayland_server::protocol::wl_shm::Format;
|
||||
//!
|
||||
//! # fn main() {
|
||||
//! # let (_, mut event_loop) = wayland_server::create_display();
|
||||
//! # let (display, mut event_loop) = wayland_server::create_display();
|
||||
//! // Insert the ShmGlobal into your event loop
|
||||
//! // Here, we specify that Yuyv and C8 format are supported
|
||||
//! // additionnaly to the standart Argb8888 and Xrgb8888.
|
||||
|
|
Loading…
Reference in New Issue