diff options
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 1b0b3ef793f..6485374e2ae 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1093,6 +1093,9 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction, char *atom_name; Lisp_Object action, ltimestamp; + if (!FRAME_VISIBLE_P (f)) + error ("Frame is invisible"); + if (x_dnd_in_progress) error ("A drag-and-drop session is already in progress"); |