1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 16:25:08 +00:00

AK: Revert Eternal<T> for now since it doesn't work as intended.

This commit is contained in:
Andreas Kling 2019-04-05 05:10:18 +02:00
parent fb6dc5350d
commit bcc00857a4
14 changed files with 51 additions and 67 deletions

View file

@ -3,7 +3,19 @@
#include <WindowServer/WSAPITypes.h>
#include <LibC/SharedBuffer.h>
String GClipboard::data()
GClipboard& GClipboard::the()
{
static GClipboard* s_the;
if (!s_the)
s_the = new GClipboard;
return *s_the;
}
GClipboard::GClipboard()
{
}
String GClipboard::data() const
{
WSAPI_ClientMessage request;
request.type = WSAPI_ClientMessage::Type::GetClipboardContents;