bbidulock / blackboxwm

A window manager for X11
Other
169 stars 28 forks source link

X clipboard support? #33

Closed LoganDark closed 4 years ago

LoganDark commented 4 years ago

When I copy something in Electron, or Firefox, or even xterm, xclip can read it. But when trying to use xclip to set the contents of the clipboard, Electron and Firefox don't pick up on it but xterm does.

What gives? What allows Electron and Firefox to know what I copy in the other, but not know when xclip changes the clipboard? And why does that happen if xterm still updates, telling me that xclip is not nonfunctional?

I feel like this can only be attributed to blackbox. I think it's not properly monitoring the X clipboard for changes, and notifying apps that use EWMH/whatever other APIs that they are using.

Would it be possible to change this behavior? Is this not blackbox's fault but something else? Please let me know, because this is preventing me from using any command line utilities to copy things to my clipboard :/

LoganDark commented 4 years ago

Okay now alacritty select to clipboard is not working. xclip can read it but Firefox and Discord don't.

But xterm select to clipboard works. Why??

LoganDark commented 4 years ago

Okay, it seems like xterm writes to the CLIPBOARD selection (when you say Select To Clipboard, which is.. surprisingly self-explanatory now) while xclip by default writes to PRIMARY (I think). Telling xclip to write to CLIPBOARD instead works.

Sorry for the false alarm.