Repository navigation
Bangs v0.1.2
Windows 上把文件拖到刘海终于能用了。
修了什么
Windows 文件暂存 — 拖文件到刘海没有任何反应。问题不在取路径那一步:整个拖放事件根本没进到进程里。鼠标底下那个窗口属于 WebView2 自己的进程,它拒绝外部拖放,系统也不会再往上问宿主窗口(同一份代码在 macOS 上一切正常;窗口区域裁剪、WS_EX_NOACTIVATE 都试着去掉过,没区别)。
现在刘海自己接管:拖拽经过它时,上面盖一层自己的透明窗口作为放置目标,读出文件路径再交给界面,和 macOS 走同一套暂存逻辑。这个窗口只在「按键从刘海外按下、指针进到刘海」这一刻存在,平时不存在,所以不会吃掉任何点击。
两个方向都实测过:拖进来(出现「松手放进暂存架」→「已暂存 1 个文件」→ 面板里出现文件),以及从暂存架拖出去到别的窗口。
其余同 v0.1.1。直接装新包即可,设置和暂存内容都保留。
官网:https://gxlself.github.io/bangs/
Dropping files on the notch finally works on Windows.
What's fixed
Windows file shelf — dragging a file onto the notch did nothing. The problem wasn't reading the paths: the drag-and-drop events never reached the process at all. The window under the pointer belongs to WebView2's own process, which refuses drops from outside, and the system never goes on to ask the host window (the same code works fine on macOS; taking away the window-region clipping and WS_EX_NOACTIVATE was tried, with no difference).
Now the notch catches drops itself: while a drag passes over it, it lays a transparent window of its own on top as the drop target, reads the file paths and hands them to the interface, which runs the same shelf logic as on macOS. That window exists only while a press that began outside the notch has the pointer over it and never otherwise, so it can't swallow any clicks.
Both directions were tested for real: dragging in ("Drop to keep it here" → "Kept 1 file" → the file shows up in the panel), and dragging from the shelf out to another window.
Everything else is as in v0.1.1. Just install the new package; settings and shelved files are kept.
Website: https://gxlself.github.io/bangs/