This is an automated email from the ASF dual-hosted git repository.

ebakke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 910f34f045 Attempt to fix intermittent bug on Windows, where cut/paste 
with external applications would stop working until IDE was restarted. With 
this fix, the problem still occurs occasionally, but goes away the next time 
the user tries to cut/paste with an external application, without the need to 
restart the IDE.
910f34f045 is described below

commit 910f34f04528f6ba58fb7ac7be985e2486a1f657
Author: Eirik Bakke <eba...@ultorg.com>
AuthorDate: Tue Oct 11 19:32:48 2022 +0200

    Attempt to fix intermittent bug on Windows, where cut/paste with external 
applications would stop working until IDE was restarted. With this fix, the 
problem still occurs occasionally, but goes away the next time the user tries 
to cut/paste with an external application, without the need to restart the IDE.
---
 platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java 
b/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java
index 4b2c3eefb7..aa9f8383d2 100644
--- a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java
+++ b/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java
@@ -350,6 +350,8 @@ implements LookupListener, FlavorListener, AWTEventListener
         if (ev.getID() == WindowEvent.WINDOW_ACTIVATED) {
             if( Utilities.isWindows() ) {
                 systemClipboard.addFlavorListener(this);
+                // Catch up on any events missed while we were away.
+                fireChange();
             }
             anyWindowIsActivated = true;
             if (System.currentTimeMillis() - lastWindowDeactivated < 100 &&


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to