Hello! I'm trying to run a very basic program about X11 clipboard. It is (unmodified) the code with title `Program 3: Owning a selection' in this page:
<https://www.uninformativ.de/blog/postings/2017-04-02/0/POSTING-en.html> I build it on `Ubuntu 22.04.5 LTS` with this Desktop Environment KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Graphics Platform: X11 using gcc -Wall -Wextra -o program3 program3.c -lX11` If I then run it on the same system, which uses X11 as its server, I obtain: Requestor: 0x2800005 Denying request of type 'TARGETS' Requestor: 0x4e00009 Denying request of type 'TARGETS' Requestor: 0x3400013 Denying request of type 'TARGETS' Requestor: 0x1e0005b Denying request of type 'TARGETS' <about 15 other identical messages> Lost selection ownership This occurs within less than a second, before I can act on the clipboard. Using `xwininfo', each of the `requestors' is related to `Qt Clipboard Requestor Window'. Qt is probably part of my Desktop Environment. I would like the above code to keep the ownership of `CLIPBOARD' for example until I "fill" the clipboard manually from any other program. Is there some modification that can be done to accomplish this? Thank you anyways, Travis