Leave other targets alone for now. I need a clipboard manager.

This commit is contained in:
Nicolás Ortega Froysa 2020-02-17 15:58:48 +01:00
parent e25dbbc11f
commit bf72370337

View File

@ -124,7 +124,7 @@ int main() {
int screen; int screen;
Atom selection, clip_property; Atom selection, clip_property;
// target atoms // target atoms
Atom utf8_target, text_target, string_target; Atom utf8_target;//, text_target, string_target;
data = NULL; data = NULL;
data_size = 0; data_size = 0;
@ -146,8 +146,8 @@ int main() {
// create atoms for selections // create atoms for selections
selection = XInternAtom(display, "CLIPBOARD", 0); selection = XInternAtom(display, "CLIPBOARD", 0);
utf8_target = XInternAtom(display, "UTF8_STRING", 0); utf8_target = XInternAtom(display, "UTF8_STRING", 0);
text_target = XInternAtom(display, "TEXT", 0); //text_target = XInternAtom(display, "TEXT", 0);
string_target = XInternAtom(display, "STRING", 0); //string_target = XInternAtom(display, "STRING", 0);
clip_property = XInternAtom(display, "TINYCLIP", 0); clip_property = XInternAtom(display, "TINYCLIP", 0);
// check if there is currently someone using the clipboard // check if there is currently someone using the clipboard