You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A problem with the current implementation of -sensitive is that a typical X desktop environment nowadays includes multiple applications that automatically request the clipboard as soon as xclip makes it available. (The culprits in my case are xfdesktop and gnome-terminal).
I've re-implemented this slightly, so that there is a window of 50ms immediately after xclip makes the selection available, in which it will return a dummy string to any selection request; only after that does it return the actual content to the next requester, and then shut down.
My current implementation is slightly non-portable (I used timersub() out of laziness), but that's fairly easily worked around.
The text was updated successfully, but these errors were encountered:
A problem with the current implementation of -sensitive is that a typical X desktop environment nowadays includes multiple applications that automatically request the clipboard as soon as xclip makes it available. (The culprits in my case are xfdesktop and gnome-terminal).
I've re-implemented this slightly, so that there is a window of 50ms immediately after xclip makes the selection available, in which it will return a dummy string to any selection request; only after that does it return the actual content to the next requester, and then shut down.
My current implementation is slightly non-portable (I used timersub() out of laziness), but that's fairly easily worked around.
The text was updated successfully, but these errors were encountered: