wlserver: Flush clients on any unlock.

This should make steamcompmgr messages actually go when we send them.

We're pulling too many frames out of "vsynced" clients now, need to instill
a real frame cadence based on vblank and notify based on that.
This commit is contained in:
Pierre-Loup A. Griffais 2020-01-01 13:54:32 +09:00
parent c70e71d1e2
commit 010ba40691

View file

@ -185,6 +185,7 @@ void wlserver_lock(void)
void wlserver_unlock(void)
{
wl_display_flush_clients(wlserver.wl_display);
pthread_mutex_unlock(&waylock);
}
@ -222,7 +223,6 @@ int wlserver_run(void)
wlserver_unlock();
break;
}
wl_display_flush_clients(wlserver.wl_display);
}
wlserver_unlock();