* src/xterm.c (x_dnd_get_window_proto): Don't return huge protocols.

This commit is contained in:
Po Lu 2022-03-22 16:26:11 +08:00
parent 15ac51e0fd
commit b10dcd0c88

View file

@ -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