]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_handle_selection_clear): Only access
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 4 Jun 2007 05:58:18 +0000 (05:58 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 4 Jun 2007 05:58:18 +0000 (05:58 +0000)
terminal->kboard when MULTI_KBOARD is defined.

src/ChangeLog.multi-tty
src/xselect.c

index fc23d818ba52683521f29313551e9e382d1ef59d..eb45515703405938b289a5fbf3e170f79ef35f0c 100644 (file)
@@ -1,5 +1,8 @@
 2007-06-03  Dan Nicolaescu  <dann@ics.uci.edu>
 
+       * xselect.c (x_handle_selection_clear): Only access
+       terminal->kboard when MULTI_KBOARD is defined.
+
        * term.c (init_tty): Use terminal specific mouse_position_hook.
 
        * macterm.c (mac_create_terminal): Indent and rearrange to be more
index cb00903c41eb3a188e270be6089309ef53cfa53e..5ce6763cd30f467f526b2b1005e69dba4cb99e2f 100644 (file)
@@ -1022,6 +1022,7 @@ x_handle_selection_clear (event)
 
   TRACE0 ("x_handle_selection_clear");
 
+#ifdef MULTI_KBOARD  
   /* If the new selection owner is also Emacs,
      don't clear the new selection.  */
   BLOCK_INPUT;
@@ -1040,7 +1041,8 @@ x_handle_selection_clear (event)
          }
       }
   UNBLOCK_INPUT;
-
+#endif
+  
   selection_symbol = x_atom_to_symbol (display, selection);
 
   local_selection_data = assq_no_quit (selection_symbol, Vselection_alist);