]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix handling invalidated selection requests
authorPo Lu <luangruo@yahoo.com>
Wed, 29 Jun 2022 13:24:51 +0000 (21:24 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 29 Jun 2022 13:24:51 +0000 (21:24 +0800)
* src/xselect.c (x_handle_selection_request): Correctly punt
when !dpyinfo.

src/xselect.c

index 7993899b2c9e95e5e60192cb5e6d1e1b25126958..5796b0034a0690c02cc174873a8cae4c1b84cace 100644 (file)
@@ -812,7 +812,7 @@ x_handle_selection_request (struct selection_input_event *event)
   pushed = false;
 
   if (!dpyinfo)
-    goto DONE;
+    goto REALLY_DONE;
 
   /* This is how the XDND protocol recommends dropping text onto a
      target that doesn't support XDND.  */
@@ -910,6 +910,9 @@ x_handle_selection_request (struct selection_input_event *event)
     CALLN (Frun_hook_with_args, Qx_sent_selection_functions,
           selection_symbol, target_symbol, success ? Qt : Qnil);
 
+  /* Used to punt when dpyinfo is NULL.  */
+ REALLY_DONE:
+
   unbind_to (count, Qnil);
 }