Added configuration option for fullscreen check

This commit is contained in:
Jarcode
2018-08-05 21:24:18 -07:00
parent fc80db664b
commit 45b614a692
4 changed files with 22 additions and 8 deletions

View File

@@ -279,10 +279,7 @@ int main(int argc, char** argv) {
}
pthread_mutex_unlock(&audio.mutex);
/* Only render if needed (ie. stop rendering when fullscreen windows are focused) */
if (xwin_should_render(r)) {
rd_update(r, lb, rb, r->bufsize_request, modified);
} else {
if (!rd_update(r, lb, rb, r->bufsize_request, modified)) {
/* Sleep for 50ms and then attempt to render again */
struct timespec tv = {
.tv_sec = 0, .tv_nsec = 50 * 1000000