A colleague has been investigating this further and has managed to
reproduce and identify the issue. It has to do with the cleanup of
clipboard notifications, which is done incorrectly.

So the "good" news is that it only affects those that run multiple
viewers at the same time. One at a time should not cause any issues.

Fixing this requires modifications of FLTK. I've attached a patch for
those interested.

Rgds
-- 
Pierre Ossman           Software Development
Cendio AB               http://cendio.com
Teknikringen 8          http://twitter.com/ThinLinc
583 30 Linköping        http://facebook.com/ThinLinc
Phone: +46-13-214600    http://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Index: src/Fl_win32.cxx
===================================================================
--- src/Fl_win32.cxx	(revision 10093)
+++ src/Fl_win32.cxx	(revision 10094)
@@ -903,7 +907,6 @@
 
   case WM_CLOSE: // user clicked close box
     Fl::handle(FL_CLOSE, window);
-    PostQuitMessage(0);
     return 0;
 
   case WM_SYNCPAINT :
@@ -1244,12 +1244,11 @@
     return 0;
 
   case WM_CHANGECBCHAIN:
-    if ((hWnd == clipboard_wnd) &&
-        (next_clipboard_wnd == (HWND)wParam)) {
+    if ((hWnd == clipboard_wnd) && (next_clipboard_wnd == (HWND)wParam))
       next_clipboard_wnd = (HWND)lParam;
-      return 0;
-    }
-    break;
+    else if (next_clipboard_wnd)
+      SendMessage(next_clipboard_wnd, WM_CHANGECBCHAIN, wParam, lParam);
+    return 0;
 
   case WM_DRAWCLIPBOARD:
     // When the clipboard moves between two FLTK windows,

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Tigervnc-users mailing list
Tigervnc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-users

Reply via email to