Kill clients missing WM_DELETE_WINDOW protocol on close

Allows the compositor to close glxgears and other similar apps.
This commit is contained in:
Shawn Wallace 2024-10-25 02:40:33 -04:00
parent 198ac851ee
commit 67efa2c559
3 changed files with 66 additions and 16 deletions

View file

@ -1,6 +1,6 @@
use crate::server::{ObjectEvent, ObjectKey};
use std::os::unix::net::UnixStream;
use std::sync::{mpsc, Mutex, Once, OnceLock};
use std::sync::{mpsc, Mutex, OnceLock};
use wayland_client::protocol::{
wl_buffer::WlBuffer, wl_callback::WlCallback, wl_compositor::WlCompositor,
wl_keyboard::WlKeyboard, wl_output::WlOutput, wl_pointer::WlPointer, wl_region::WlRegion,