*** empty log message ***
authorroot <root>
Fri, 20 Jan 2006 11:02:46 +0000 (11:02 +0000)
committerroot <root>
Fri, 20 Jan 2006 11:02:46 +0000 (11:02 +0000)
Changes
configure
configure.ac
src/command.C
src/command.h
src/feature.h
src/hookinc.h
src/init.C
src/rxvt.h

diff --git a/Changes b/Changes
index e21394aea8937f8120a6f3c3557c8d28089de8b1..c2deec54c4218120ae97facd24c0f447fd1478f3 100644 (file)
--- a/Changes
+++ b/Changes
@@ -16,6 +16,9 @@ WISH: OnTheSpot editing, or maybe switch to miiiiiiif. or maybe use perl and an
 WISH: just for fun, do shade and tint with XRender.
 WISH: support tex fonts
 
+7.2
+       - removed support for obsolete offix dnd protocol.
+
 7.1  Thu Jan 19 20:25:34 CET 2006
         - setuid/setgid operation is now _encouraged_: security has been
           improved by moving privileged operations into a separate process
index b9835b58af7e6eb3aa4de23a8d6e780c3a1e94d9..26c9a603e678a07f20d8d8b405dae57ac692d8d5 100755 (executable)
--- a/configure
+++ b/configure
@@ -3309,7 +3309,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
 if test -z "$orig_CXXFLAGS"; then
   if test x$GCC = xyes && test "x$GXX" = xyes; then
-    CXXFLAGS="-g -O3 -Os -fno-threadsafe-statics -fno-enforce-eh-specs"
+    CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
 
 cat >conftest.$ac_ext <<_ACEOF
 int i;
index 792f935626395a0de74d40c4d00536dae3ba0cc0..31d90f41757da14c7968ec5941363f405caf485b 100644 (file)
@@ -54,7 +54,7 @@ dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure'
 dnl#
 if test -z "$orig_CXXFLAGS"; then
   if test x$GCC = xyes && test "x$GXX" = xyes; then
-    CXXFLAGS="-g -O3 -Os -fno-threadsafe-statics -fno-enforce-eh-specs"
+    CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
     AC_COMPILE_IFELSE([int i;], [echo didididid], [CXXFLAGS="-g -O3"])
   else
     CXXFLAGS="-O"
index 22e2e364cc004debd588a29d0fcd5a0ce3bf2d97..102d09d8cd900a0c8efe848392a0462b3e1a1486 100644 (file)
@@ -1403,53 +1403,32 @@ rxvt_term::x_cb (XEvent &ev)
         break;
 
       case ClientMessage:
-        if (ev.xclient.format == 32
-            && ev.xclient.message_type == xa[XA_WM_PROTOCOLS])
+        if (ev.xclient.format == 32)
           {
-            if (ev.xclient.data.l[0] == xa[XA_WM_DELETE_WINDOW])
-              destroy ();
+            if (ev.xclient.message_type == xa[XA_WM_PROTOCOLS])
+              {
+                if (ev.xclient.data.l[0] == xa[XA_WM_DELETE_WINDOW])
+                  {
+                    if (!HOOK_INVOKE ((this, HOOK_WM_DELETE_WINDOW, DT_XEVENT, ev, DT_END)))
+                      destroy ();
+                  }
 #if ENABLE_EWMH
-            else if (ev.xclient.data.l[0] == xa[XA_NET_WM_PING])
-              XSendEvent (disp, ev.xclient.window = display->root,
-                          False, SubstructureRedirectMask | SubstructureNotifyMask,
-                          &ev);
+                else if (ev.xclient.data.l[0] == xa[XA_NET_WM_PING])
+                  XSendEvent (disp, ev.xclient.window = display->root,
+                              False, SubstructureRedirectMask | SubstructureNotifyMask,
+                              &ev);
 #endif
-          }
+              }
 #if ENABLE_XEMBED
-        else if (ev.xclient.format == 32 && ev.xclient.message_type == xa[XA_XEMBED])
-          {
-            if (ev.xclient.data.l[1] == XEMBED_FOCUS_IN)
-              focus_in ();
-            else if (ev.xclient.data.l[1] == XEMBED_FOCUS_OUT)
-              focus_out ();
-          }
+            else if (ev.xclient.format == 32 && ev.xclient.message_type == xa[XA_XEMBED])
+              {
+                if (ev.xclient.data.l[1] == XEMBED_FOCUS_IN)
+                  focus_in ();
+                else if (ev.xclient.data.l[1] == XEMBED_FOCUS_OUT)
+                  focus_out ();
+              }
 #endif
-#ifdef OFFIX_DND
-        /* OffiX Dnd (drag 'n' drop) protocol */
-          else if (ev.xclient.message_type == xa[XA_DNDPROTOCOL]
-            && (ev.xclient.data.l[0] == DndFile
-                || ev.xclient.data.l[0] == DndDir
-                || ev.xclient.data.l[0] == DndLink))
-          {
-            /* Get Dnd data */
-            Atom ActualType;
-            int ActualFormat;
-            unsigned char *data;
-            unsigned long Size, RemainingBytes;
-
-            XGetWindowProperty (disp, display->root,
-                                xa[XA_DNDSELECTION],
-                                0L, 1000000L,
-                                False, AnyPropertyType,
-                                &ActualType, &ActualFormat,
-                                &Size, &RemainingBytes,
-                                &data);
-            set_string_property (XA_CUT_BUFFER0, data);
-            XFree (data);
-            selection_paste (display->root, XA_CUT_BUFFER0, true);
-            XSetInputFocus (disp, display->root, RevertToNone, CurrentTime);
           }
-#endif                         /* OFFIX_DND */
         break;
 
       case MappingNotify:
index e30da5dd70c7b0cdab9f8b9306ad4138e65aa86a..8cd5f9ce1677d105481a4f0b0f8c488443d29c7b 100644 (file)
 
 #define ESC_ARGS       32      /* max # of args for esc sequences */
 
-#ifdef OFFIX_DND
-# define DndFile       2
-# define DndDir                5
-# define DndLink       7
-#endif
-
 /* a large REFRESH_PERIOD causes problems with `cat' */
 #define REFRESH_PERIOD         1
 
index 7438f186fb5bcc09eec23cd3281408e8155b435c..45581948e7845713693a60b3a572420f0d01d518 100644 (file)
  */
 /* #define ALLOW_132_MODE */
  
-/*
- * Add support for the Offix DND (Drag 'n' Drop) protocol
- */
-/* #define OFFIX_DND */
-
 /*---------------------------------KEYS---------------------------------*/
 
 /*
index 108ad66b2bcc5172d49996bba27cc6bce9b23515..ea23d61e5e390b3915baf50b4f5f7958e07d34be 100644 (file)
@@ -37,4 +37,9 @@
   def (MAP_NOTIFY)
   def (UNMAP_NOTIFY)
   def (CONFIGURE_NOTIFY)
+  def (CLIENT_MESSAGE)
+  def (WM_DELETE_WINDOW)
+  def (WM_PROTOCOLS)
+
   def (CUSTOM_REND) // hovering over custom rendition, generate enter/leave maybe?
+
index a2e58d07b82bdac4c2a55ac7d0c2ebeba4c3130c..41241b3d2977d03ae9c1cb9f28d61437f2456407 100644 (file)
@@ -205,10 +205,6 @@ const char *const xa_names[] =
     "_XROOTPMAP_ID",
     "ESETROOT_PMAP_ID",
 #endif
-#ifdef OFFIX_DND
-    "DndProtocol",
-    "DndSelection",
-#endif
 #if ENABLE_XEMBED
     "_XEMBED",
     "_XEMBED_INFO",
index 36f45c643248aea656d84a21678c053fe19e8044..3373789e568a353a737b83ae757e6e476c72240b 100644 (file)
@@ -666,10 +666,6 @@ enum {
   XA_XROOTPMAP_ID,
   XA_ESETROOT_PMAP_ID,
 #endif
-#if OFFIX_DND                /* OffiX Dnd (drag 'n' drop) support */
-  XA_DNDPROTOCOL,
-  XA_DNDSELECTION,
-#endif
 #if ENABLE_XEMBED
   XA_XEMBED,
   XA_XEMBED_INFO,