1
0
Fork 0

display: Only send one ping to a window at a time

If a window already is being pinged, it doesn't make sense to send more
pings to the window, instead we should just wait for that answer or
timeout until we send a new one.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/891
This commit is contained in:
Jonas Dreßler 2020-01-22 15:59:29 +01:00 committed by Jonas Ådahl
parent 9b58033375
commit e51279dcf0

View file

@ -2081,6 +2081,14 @@ meta_display_ping_window (MetaWindow *window,
{
MetaPingData *ping_data = l->data;
if (window == ping_data->window)
{
meta_topic (META_DEBUG_PING,
"Window %s already is being pinged with serial %u\n",
window->desc, ping_data->serial);
return;
}
if (serial == ping_data->serial)
{
meta_warning ("Ping serial %u was reused for window %s, "