From b931b230fb0aec09560d7fb2674a5414c59e9626 Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Tue, 19 Nov 2024 20:58:06 -0500 Subject: [PATCH] Add some logging to help debug issue on i3 --- x11/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x11/src/main.rs b/x11/src/main.rs index 95ed6d3..fa063d7 100644 --- a/x11/src/main.rs +++ b/x11/src/main.rs @@ -707,6 +707,7 @@ fn handle_x11_event( *state = State::FastPathPendingSelection { selection: event.selection, }; + trace!("Initialized transfer state for atom {transfer_atom}: {state:?}"); conn.convert_selection( transfer_window, @@ -724,7 +725,7 @@ fn handle_x11_event( ); return Ok(()); }; - debug!("Stage 2 selection notification received."); + trace!("Stage 2 selection notification received for atom {transfer_atom}: {state:?}."); match state { &mut State::FastPathPendingSelection { selection } => { @@ -789,6 +790,7 @@ fn handle_x11_event( return Ok(()); }; + trace!("Processing transfer for atom {transfer_atom}: {state:?}"); match mem::take(state) { State::TargetsRequest { selection,