mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 02:35:59 +01:00
drm: ignore primary argument when using evdi drivers (#25)
* fix: ignore primary if using evdi drivers for displaylink * style: removed curly braces from evdi if-check
This commit is contained in:
parent
4a1424e85b
commit
e569340c6b
1 changed files with 5 additions and 1 deletions
|
@ -622,8 +622,12 @@ bool Aquamarine::CDRMBackend::registerGPU(SP<CSessionDevice> gpu_, SP<CDRMBacken
|
|||
|
||||
gpuName = drmName;
|
||||
|
||||
auto drmVerName = drmVer->name ? drmVer->name : "unknown";
|
||||
if (std::string_view(drmVerName) == "evdi")
|
||||
primary = {};
|
||||
|
||||
backend->log(AQ_LOG_DEBUG,
|
||||
std::format("drm: Starting backend for {}, with driver {}{}", drmName ? drmName : "unknown", drmVer->name ? drmVer->name : "unknown",
|
||||
std::format("drm: Starting backend for {}, with driver {}{}", drmName ? drmName : "unknown", drmVerName,
|
||||
(primary ? std::format(" with primary {}", primary->gpu->path) : "")));
|
||||
|
||||
drmFreeVersion(drmVer);
|
||||
|
|
Loading…
Reference in a new issue