quirks: log when applying weston sub-surface desync quirk

This commit is contained in:
Daniel Eklöf 2020-03-02 18:47:04 +01:00
parent 6912bbd310
commit b268b69a7b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -3,6 +3,10 @@
#include <stdlib.h>
#include <stdbool.h>
#define LOG_MODULE "quirks"
#define LOG_ENABLE_DBG 0
#include "log.h"
static bool
is_weston(void)
{
@ -25,6 +29,8 @@ is_weston(void)
if (!initialized) {
initialized = true;
is_weston = getenv("WESTON_CONFIG_FILE") != NULL;
if (is_weston)
LOG_WARN("applying wl_subsurface_set_desync() workaround for weston");
}
return is_weston;