summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-02-05 09:10:07 +0000
committerBill Spitzak <spitzak@gmail.com>2000-02-05 09:10:07 +0000
commit1e5596293b39e64adcffe45a0bb4b6fcd4a1df13 (patch)
treec222c57f11200484ad8c49e228088c6a72157982 /src
parent53bf740c38dd39775b59b72a7bb1f52272deb2a3 (diff)
Fixed cut/paste to other applications on Win32?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cutpaste_win32.cxx27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/Fl_cutpaste_win32.cxx b/src/Fl_cutpaste_win32.cxx
index ee69b75d6..c17919af7 100644
--- a/src/Fl_cutpaste_win32.cxx
+++ b/src/Fl_cutpaste_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.3 1999/06/12 15:09:19 mike Exp $"
+// "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.4 2000/02/05 09:10:07 bill Exp $"
//
// WIN32 cut/paste for the Fast Light Tool Kit (FLTK).
//
@@ -46,18 +46,17 @@ static int selection_xevent_handler(int) {
switch (fl_msg.message) {
- case WM_DESTROYCLIPBOARD: {
- Fl_Window *w = Fl::first_window();
- while (w != (Fl_Window *)0)
- if (fl_msg.hwnd == fl_xid(w)) break;
- else w = Fl::next_window(w);
-
- if (w == (Fl_Window *)0) {
- Fl::selection_owner(0);
- Fl::flush(); // get the redraw to happen
- }
- return 1;
- }
+ case WM_DESTROYCLIPBOARD:
+// This commented-out code was in previous versions of fltk, but it broke
+// things, and I'm not sure what the intention of it is:
+// {Fl_Window *w = Fl::first_window();
+// while (w != (Fl_Window *)0)
+// if (fl_msg.hwnd == fl_xid(w)) break;
+// else w = Fl::next_window(w);
+// if (w != (Fl_Window *)0) return 1;}
+ Fl::selection_owner(0);
+ Fl::flush(); // get the redraw to happen
+ return 1;
case WM_RENDERALLFORMATS:
if (!OpenClipboard(fl_xid(Fl::first_window()))) return 0;
@@ -138,5 +137,5 @@ void Fl::paste(Fl_Widget &receiver) {
}
//
-// End of "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.3 1999/06/12 15:09:19 mike Exp $".
+// End of "$Id: Fl_cutpaste_win32.cxx,v 1.5.2.4 2000/02/05 09:10:07 bill Exp $".
//