diff options
author | Peter Åstrand <astrand@cendio.se> | 2011-08-11 09:14:54 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2011-08-11 09:14:54 +0000 |
commit | 0aae4f44cb74620ca6398a531be868f9c1596eca (patch) | |
tree | 7728cfcb413ffddfaba34d1693bc1cfa94e72246 /common/fltk | |
parent | fcc0d1cdf9903df2a6203feef84d1daa0511e6c8 (diff) | |
download | tigervnc-0aae4f44cb74620ca6398a531be868f9c1596eca.tar.gz tigervnc-0aae4f44cb74620ca6398a531be868f9c1596eca.zip |
Update the fl_update_clipboard function, so that it matches the latest
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
Diffstat (limited to 'common/fltk')
-rw-r--r-- | common/fltk/src/Fl_win32.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/fltk/src/Fl_win32.cxx b/common/fltk/src/Fl_win32.cxx index d4ada8b1..b36f307c 100644 --- a/common/fltk/src/Fl_win32.cxx +++ b/common/fltk/src/Fl_win32.cxx @@ -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; |