ui: Fix :suspend command for remote UIs

Forward the command to the remote UI and flush immediately. The
semantics/handling is UI-specific.
This commit is contained in:
Thiago de Arruda 2015-01-09 09:51:11 -03:00
parent a282d06a67
commit 2db4049274
2 changed files with 3 additions and 2 deletions

View File

@ -322,6 +322,6 @@ static void remote_ui_flush(UI *ui)
static void remote_ui_suspend(UI *ui) static void remote_ui_suspend(UI *ui)
{ {
UIData *data = ui->data; Array args = ARRAY_DICT_INIT;
remote_ui_disconnect(data->channel_id); push_call(ui, "suspend", args);
} }

View File

@ -119,6 +119,7 @@ void ui_suspend(void)
{ {
if (abstract_ui) { if (abstract_ui) {
UI_CALL(suspend); UI_CALL(suspend);
UI_CALL(flush);
} else { } else {
mch_suspend(); mch_suspend();
} }