oae / gnome-shell-pano

Next-gen Clipboard Manager for Gnome Shell
https://extensions.gnome.org/extension/5278/pano/
GNU General Public License v2.0
1.04k stars 55 forks source link

It is difficult to paste into the correct window when using Gnome's active window follows cursor option #125

Closed MaddyGuthridge closed 1 year ago

MaddyGuthridge commented 1 year ago

Describe the bug When I enable Gnome's "Active window follows cursor" option, Pano often pastes into the wrong window. This is because in order to click the correct clipboard entry, I need to move my mouse away from the window I wish to paste in, meaning when Pano's panel closes, the wrong window will be chosen by Gnome as the selection, meaning that the content will be pasted into the wrong place.

Expected behavior I would expect Pano to check the active window as it opens, then paste into that window as it closes, rather than just pasting into whatever window happens to be active.

Screenshots

image When I click this, the command sudo rm -rf / will be pasted into my VS Code terminal (the window below that clipboard entry), rather than the GitHub issues page which was the window I intend to paste into.

Obviously, don't actually try with that command, but this is just to highlight the potential damage this could do to systems.

To Reproduce

Log data Output from journalctl /usr/bin/gnome-shell:

This is literally over a million lines long, and is >40 MB. If it's absolutely necessary, I'll upload it but otherwise I'd rather not.

oae commented 1 year ago

When pano hides, it will let Gnome Shell handle the latest focussed window. So if you use it with follow cursor option, gnome-shell will change the focus.

You can use arrow keys to navigate between items. Pressing enter on an item will copy that. So you don't need to move the mouse. But if you want to use it with the mouse, maybe consider disabling the Paste on Select option in settings.