9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.64k stars 326 forks source link

Selection and Clipboard cleanup #444

Open ikrabbe opened 4 years ago

ikrabbe commented 4 years ago

I found two similar pieces of code, that are responsible for some warning message on my system, due to extended use of atoms for clipboard mime types (text/plain;charset=utf-8 and text/url-list). This change simplifies the code, by exporting the handling of extensions into a simple macro block: MODIFY_SELECTION(xe), with the XSelectionEvent*xe.