* src/xterm.c (x_dnd_get_window_proto): Don't return huge protocols.
This commit is contained in:
parent
15ac51e0fd
commit
b10dcd0c88
1 changed files with 1 additions and 1 deletions
|
@ -1020,7 +1020,7 @@ x_dnd_get_window_proto (struct x_display_info *dpyinfo, Window wdesc)
|
|||
value = (int) *(Atom *) tmp_data;
|
||||
XFree (tmp_data);
|
||||
|
||||
return (int) value;
|
||||
return min (X_DND_SUPPORTED_VERSION, (int) value);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue