log the XWayland display

This commit is contained in:
Christian Meissl 2021-06-28 22:05:35 +02:00 committed by Victor Berger
parent 29c0620a58
commit 3392c0c675
1 changed files with 5 additions and 1 deletions

View File

@ -327,7 +327,11 @@ fn xwayland_ready<Data: 'static>(inner: &Rc<RefCell<Inner<Data>>>) {
::std::env::set_var("DISPLAY", format!(":{}", instance.display_lock.display()));
// signal the WM
info!(guard.log, "XWayland is ready on DISPLAY \":{}\", signaling the WM.", instance.display_lock.display());
info!(
guard.log,
"XWayland is ready on DISPLAY \":{}\", signaling the WM.",
instance.display_lock.display()
);
// send error occurs if the user dropped the channel... We cannot do much except ignore.
let _ = guard.sender.send(XWaylandEvent::Ready {
connection: instance.wm_fd.take().unwrap(), // This is a bug if None