summaryrefslogtreecommitdiff
path: root/src/xgselect.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-06-05 15:34:49 +0800
committerPo Lu <luangruo@yahoo.com>2022-06-05 15:38:23 +0800
commit6011d39b6a4bc659da364255bcae22c4e6ef3a3f (patch)
tree785eefe49cab4047016696287f4788be55e2a424 /src/xgselect.h
parent993853531aebb303870d6ff1ba7db2007d464b63 (diff)
downloademacs-6011d39b6a4bc659da364255bcae22c4e6ef3a3f.tar.gz
emacs-6011d39b6a4bc659da364255bcae22c4e6ef3a3f.tar.bz2
emacs-6011d39b6a4bc659da364255bcae22c4e6ef3a3f.zip
Fix drag-and-drop of files with multibyte filenames
* lisp/dired.el (dired-mouse-drag): Fix re-signalling of errors. * lisp/select.el (xselect-convert-to-filename): (xselect-convert-to-text-uri-list): (xselect-convert-to-dt-netfile): Encode in raw-text-unix. * src/xgselect.c (suppress_xg_select, release_xg_select): New functions. (xg_select): Respect xg_select suppression by delegating to pselect. * src/xgselect.h: Update prototypes. * src/xterm.c (x_dnd_begin_drag_and_drop): Suppress xg_select during the nested event loop. (handle_one_xevent): Handle cases where hold_quit is nil inside a selection event handler during DND.
Diffstat (limited to 'src/xgselect.h')
-rw-r--r--src/xgselect.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xgselect.h b/src/xgselect.h
index 15482cbf922..156d4bde59f 100644
--- a/src/xgselect.h
+++ b/src/xgselect.h
@@ -25,9 +25,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
struct timespec;
-extern int xg_select (int max_fds,
- fd_set *rfds, fd_set *wfds, fd_set *efds,
- struct timespec *timeout, sigset_t *sigmask);
+extern int xg_select (int, fd_set *, fd_set *, fd_set *,
+ struct timespec *, sigset_t *);
+extern void suppress_xg_select (void);
+extern void release_xg_select (void);
extern void release_select_lock (void);