summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-02-24 17:06:25 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-02-24 17:06:25 +0000
commit2d46e4877bac37abac18ee21878836727a15331d (patch)
tree389e4ba7bbcddfdccb8f0caa768f73ea24276917
parentab1652e62eaad26169a290f0f233091588b307d8 (diff)
Revert "Empty Windows clipboard when X loses focus"
-rw-r--r--hw/xwin/win.h3
-rw-r--r--hw/xwin/winclipboard.h1
-rw-r--r--hw/xwin/winclipboardinit.c7
-rwxr-xr-xhw/xwin/winclipboardwndproc.c26
-rw-r--r--hw/xwin/winwndproc.c6
5 files changed, 0 insertions, 43 deletions
diff --git a/hw/xwin/win.h b/hw/xwin/win.h
index f2b76ebb6..b0ce366b5 100644
--- a/hw/xwin/win.h
+++ b/hw/xwin/win.h
@@ -825,9 +825,6 @@ winInitClipboard (void);
void
winFixClipboardChain (void);
-
-void
-winUpdateClipboard (void);
#endif
diff --git a/hw/xwin/winclipboard.h b/hw/xwin/winclipboard.h
index c51988bb9..6f1616359 100644
--- a/hw/xwin/winclipboard.h
+++ b/hw/xwin/winclipboard.h
@@ -74,7 +74,6 @@
#define WIN_CLIPBOARD_DELAY 1
#define WM_WM_REINIT (WM_USER + 1)
-#define WM_WM_DEINIT (WM_USER + 2)
/*
* References to external symbols
diff --git a/hw/xwin/winclipboardinit.c b/hw/xwin/winclipboardinit.c
index da8a9b753..1cbc27a2b 100644
--- a/hw/xwin/winclipboardinit.c
+++ b/hw/xwin/winclipboardinit.c
@@ -143,10 +143,3 @@ winFixClipboardChain (void)
PostMessage (g_hwndClipboard, WM_WM_REINIT, 0, 0);
}
}
-
-void
-winUpdateClipboard (void)
-{
- if (g_fClipboard && g_hwndClipboard)
- PostMessage (g_hwndClipboard, WM_WM_DEINIT, 0, 0);
-}
diff --git a/hw/xwin/winclipboardwndproc.c b/hw/xwin/winclipboardwndproc.c
index 40bdaa978..02347ff43 100755
--- a/hw/xwin/winclipboardwndproc.c
+++ b/hw/xwin/winclipboardwndproc.c
@@ -246,32 +246,6 @@ winClipboardWindowProc (HWND hwnd, UINT message,
winDebug ("winClipboardWindowProc - WM_WM_REINIT: Exit\n");
return 0;
- case WM_WM_DEINIT:
- {
- /*
- Assume the user has changed the selection since we gained
- focus, so empty the Windows clipboard, to tell Windows that
- it needs to ask us to render the contents again if anyone asks
- for it
- */
-
- /* Set up for another delayed rendering callback */
- OpenClipboard (hwnd);
-
- /* Take ownership of the Windows clipboard */
- EmptyClipboard ();
-
- /* Advertise Unicode if we support it */
- if (g_fUnicodeSupport)
- SetClipboardData (CF_UNICODETEXT, NULL);
-
- /* Always advertise regular text */
- SetClipboardData (CF_TEXT, NULL);
-
- /* Release the clipboard */
- CloseClipboard ();
- }
- return 0;
case WM_DRAWCLIPBOARD:
{
diff --git a/hw/xwin/winwndproc.c b/hw/xwin/winwndproc.c
index 23d5454b0..e99697de8 100644
--- a/hw/xwin/winwndproc.c
+++ b/hw/xwin/winwndproc.c
@@ -1217,12 +1217,6 @@ winWindowProc (HWND hwnd, UINT message,
#ifdef XWIN_CLIPBOARD
/* Make sure the clipboard chain is ok. */
winFixClipboardChain ();
-
- if (!wParam)
- {
- /* Make sure clipboard is updated if needed */
- winUpdateClipboard ();
- }
#endif
/* Call engine specific screen activation/deactivation function */