mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-12 06:21:02 -08:00
Fix maximum selection size reporting
* src/xselect.c (selection_quantum): Take into account extended request size.
This commit is contained in:
parent
5324722202
commit
03b07fd62e
1 changed files with 5 additions and 1 deletions
|
|
@ -98,7 +98,11 @@ static void lisp_data_to_selection_data (struct x_display_info *, Lisp_Object,
|
|||
static int
|
||||
selection_quantum (Display *display)
|
||||
{
|
||||
long mrs = XMaxRequestSize (display);
|
||||
long mrs = XExtendedMaxRequestSize (display);
|
||||
|
||||
if (!mrs)
|
||||
mrs = XMaxRequestSize (display);
|
||||
|
||||
return (mrs < MAX_SELECTION_QUANTUM / X_LONG_SIZE + 25
|
||||
? (mrs - 25) * X_LONG_SIZE
|
||||
: MAX_SELECTION_QUANTUM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue