From 8f4e6bc9c1386cfb0b08872e69af09ff7fe3b041 Mon Sep 17 00:00:00 2001 From: cute-johnny Date: Sat, 28 Nov 2026 19:00:45 +0100 Subject: [PATCH] rust-explorer: resting the pointer on a row no longer selects it (#230) The hover preview asks for WM_MOUSEHOVER on the list and passed it on to the list view, which selects the row under the pointer on that message once the list has been clicked: after one click, every row the pointer rested on became the selection. The message is the preview's own request, so it now stops there. Co-Authored-By: Claude Opus 5.5 --- plugins/rust-explorer/src/preview.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/rust-explorer/src/preview.rs b/plugins/rust-explorer/src/preview.rs index b6e31c52..900de185 100644 --- a/plugins/rust-explorer/src/preview.rs +++ b/plugins/rust-explorer/src/preview.rs @@ -151,7 +151,12 @@ unsafe extern "system" fn list_proc(h: HWND, m: u32, wp: WPARAM, lp: LPARAM, _id let mut t = TRACKMOUSEEVENT { cbSize: size_of::() as u32, dwFlags: TME_HOVER | TME_LEAVE, hwndTrack: h, dwHoverTime: 400 }; TrackMouseEvent(&mut t); } - WM_MOUSEHOVER => ask(h), + // ours alone (TME_HOVER above): the list view selects the row under the pointer on WM_MOUSEHOVER once it has been + // clicked, so passing it on made every row the pointer rested on the selection (#230) + WM_MOUSEHOVER => { + ask(h); + return 0; + } WM_IMAGE => { if wp == ASKED.get() && ROW.get() >= 0 { show(h, lp);