/* X Selection processing for emacs
- Copyright (C) 1990 Free Software Foundation.
+ Copyright (C) 1990, 1992 Free Software Foundation.
This file is part of GNU Emacs.
GNU Emacs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
+the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Emacs is distributed in the hope that it will be useful,
/* The last 23 bits of the timestamp of the last mouse button event. */
extern Time mouse_timestamp;
+/* An expedient hack! Fix this! */
+#define last_event_timestamp CurrentTime
+
/* t if a mouse button is depressed. */
extern Lisp_Object Vmouse_grabbed;
selecting_window, time);
owner_window = XGetSelectionOwner (x_current_display, selection_type);
- if (owner_window != selecting_window)
+ if (owner_window != selecting_window)
return 0;
return 1;
x_begin_selection_own = event_time;
val = Vx_selection_value = string;
}
- UNBLOCK_INPUT;
+ UNBLOCK_INPUT;
}
else if (EQ (type, Qsecondary))
{
BLOCK_INPUT;
if (own_selection (Xatom_clipboard, event_time))
{
- x_begin_clipboard_own = event_time;
+ x_begin_clipboard_own = event_time;
val = Vx_clipboard_value = string;
}
- UNBLOCK_INPUT;
+ UNBLOCK_INPUT;
}
else
error ("Invalid X selection type");
if (NILP (type) || EQ (type, Qprimary))
{
if (!NILP (Vx_selection_value))
- return Vx_selection_value;
+ return Vx_selection_value;
return get_selection_value (XA_PRIMARY);
}