зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1721563 [Wayland] Flush wl_display connection before reading clipboard data, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120658
This commit is contained in:
Родитель
d0a92f7593
Коммит
1e53409c57
|
@ -230,6 +230,11 @@ char* DataOffer::GetDataInternal(const char* aMimeType,
|
|||
}
|
||||
|
||||
close(pipe_fd[1]);
|
||||
pipe_fd[1] = -1;
|
||||
|
||||
// Flush wl_display connection to get clipboard data uploaded from display to
|
||||
// our pipe.
|
||||
wl_display_flush(WaylandDisplayGet()->GetDisplay());
|
||||
|
||||
channel = g_io_channel_unix_new(pipe_fd[0]);
|
||||
GError* error = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче