Skip to content

Commit

Permalink
Add some logging to help debug issue on i3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Saveau committed Nov 20, 2024
1 parent b897f53 commit b931b23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x11/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 } => {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b931b23

Please sign in to comment.