Fix handling invalidated selection requests
* src/xselect.c (x_handle_selection_request): Correctly punt when !dpyinfo.
This commit is contained in:
parent
e83919f721
commit
d3492bcf30
1 changed files with 4 additions and 1 deletions
|
@ -812,7 +812,7 @@ x_handle_selection_request (struct selection_input_event *event)
|
|||
pushed = false;
|
||||
|
||||
if (!dpyinfo)
|
||||
goto DONE;
|
||||
goto REALLY_DONE;
|
||||
|
||||
/* This is how the XDND protocol recommends dropping text onto a
|
||||
target that doesn't support XDND. */
|
||||
|
@ -910,6 +910,9 @@ x_handle_selection_request (struct selection_input_event *event)
|
|||
CALLN (Frun_hook_with_args, Qx_sent_selection_functions,
|
||||
selection_symbol, target_symbol, success ? Qt : Qnil);
|
||||
|
||||
/* Used to punt when dpyinfo is NULL. */
|
||||
REALLY_DONE:
|
||||
|
||||
unbind_to (count, Qnil);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue