bsnes/nall/xorg/clipboard.hpp

15 lines
256 B
C++
Raw Normal View History

#pragma once
#include <nall/xorg/xorg.hpp>
namespace nall::Clipboard {
auto clear() -> void {
XDisplay display;
if(auto atom = XInternAtom(display, "CLIPBOARD", XlibTrue)) {
XSetSelectionOwner(display, atom, XlibNone, XlibCurrentTime);
}
}
}