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:
@@ -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:
|
||||
{
|
||||
|
Reference in New Issue
Block a user