mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
9b58033375
commit
e51279dcf0
@ -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, "
|
||||
|
Loading…
Reference in New Issue
Block a user