Rewrite the wxX11 cliboard

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:43:44 +00:00
parent 42d5c34c64
commit b045f9506b
3 changed files with 369 additions and 76 deletions

View File

@@ -38,6 +38,7 @@
#include "wx/thread.h"
#endif
#include "wx/clipbrd.h"
#include "wx/x11/private.h"
#include <string.h>
@@ -59,6 +60,11 @@ static wxSize g_initialSize = wxDefaultSize;
static wxWindow *g_nextFocus = NULL;
static wxWindow *g_prevFocus = NULL;
//------------------------------------------------------------------------
// X11 clipboard event handling
//------------------------------------------------------------------------
extern "C" void wxClipboardHandleSelectionRequest(XEvent event);
//------------------------------------------------------------------------
// X11 error handling
//------------------------------------------------------------------------
@@ -500,6 +506,11 @@ bool wxApp::ProcessXEvent(WXEvent* _event)
}
return false;
}
case SelectionRequest:
{
//A request to paste has occured.
wxClipboardHandleSelectionRequest(*event);
}
#if 0
case DestroyNotify:
{