changeset 53785:1470a74d1913

* xterm.c (handle_one_xevent): Call x_handle_dnd_message for ClientMessages.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 03 Feb 2004 16:34:26 +0000
parents 1f46ef2766f4
children 8aea816df4cc
files src/xterm.c
diffstat 1 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Feb 03 16:33:53 2004 +0000
+++ b/src/xterm.c	Tue Feb 03 16:34:26 2004 +0000
@@ -5934,7 +5934,25 @@
           }
 #endif /* USE_TOOLKIT_SCROLL_BARS */
         else
-          goto OTHER;
+          {
+            struct frame *f
+              = x_any_window_to_frame (dpyinfo, event.xclient.window);
+
+            if (f)
+              {
+                int ret = x_handle_dnd_message (f, &event.xclient,
+                                                dpyinfo, bufp);
+                if (ret > 0)
+                  {
+                    ++bufp, ++count, --numchars;
+                  }
+
+                if (ret != 0)
+                  *finish = X_EVENT_DROP;
+              }
+            else
+              goto OTHER;
+          }
       }
       break;