Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipboard owner is not updated #1183

Closed
hluk opened this issue Aug 3, 2019 · 3 comments
Closed

Clipboard owner is not updated #1183

hluk opened this issue Aug 3, 2019 · 3 comments
Assignees
Labels
bug macOS Relates to macOS

Comments

@hluk
Copy link
Owner

hluk commented Aug 3, 2019

On macOS (tested on Mojave 10.14.5) native event handlers in the clipboard monitor process are not called when current window changes.

This means that clipboard owner will be incorrect.

@hluk hluk added bug macOS Relates to macOS labels Aug 3, 2019
@hluk hluk self-assigned this Aug 3, 2019
@hluk hluk changed the title Current window and clipboard owner are not updated Clipboard owner is not updated Aug 3, 2019
hluk added a commit that referenced this issue Aug 3, 2019
@hluk hluk pinned this issue Aug 4, 2019
@hluk hluk closed this as completed in 4886dd7 Aug 5, 2019
@leooangeloo
Copy link

Hey hluk, I was the one that emailed you about this issue. How would I go about getting this bug fix into my version of copy?

@hluk
Copy link
Owner Author

hluk commented Aug 5, 2019

@leooangeloo It will be in the next release but not yet sure when I'll be able to do it.

You can add following command to CopyQ to work around this issue.

[Command]
Command="
    var onClipboardChanged_ = onClipboardChanged
    onClipboardChanged = function() {
        setData(mimeWindowTitle, currentWindowTitle())
    }"
Icon=\xf2d0
IsScript=true
Name=Set Current Window

Alternative is to build it from source.

@kurtmckee
Copy link
Contributor

@hluk Should this ticket remain pinned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug macOS Relates to macOS
Projects
None yet
Development

No branches or pull requests

3 participants