]> source.dussan.org Git - tigervnc.git/commitdiff
Update the fl_update_clipboard function, so that it matches the latest
authorPeter Åstrand <astrand@cendio.se>
Thu, 11 Aug 2011 09:14:54 +0000 (09:14 +0000)
committerPeter Åstrand <astrand@cendio.se>
Thu, 11 Aug 2011 09:14:54 +0000 (09:14 +0000)
version of the win32 clipboard patch available from
http://www.fltk.org/str.php?L2636. See bug 3386240.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4625 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/fltk/src/Fl_win32.cxx

index d4ada8b18c9b79db4a69eb41b0b4abfc6ebf1280..b36f307c524cc05a2ae9b51acba3937ba186bff2 100644 (file)
@@ -553,11 +553,12 @@ public:
 };
 
 void fl_update_clipboard(void) {
-  HWND hwnd = fl_xid(Fl::first_window());
-
-  if (!hwnd)
+  Fl_Window *w1 = Fl::first_window();
+  if (!w1)
     return;
 
+  HWND hwnd = fl_xid(w1);
+
   if (!OpenClipboard(hwnd))
     return;