wayland: fix invalid wl_output_mode dimensions sent

This commit is contained in:
Vaxry 2024-06-08 11:50:44 +02:00
parent 5b6d54cae0
commit 10e02076b1

View file

@ -52,7 +52,7 @@ void CWLOutputResource::updateState() {
if (resource->version() >= 2) if (resource->version() >= 2)
resource->sendScale(std::ceil(monitor->scale)); resource->sendScale(std::ceil(monitor->scale));
resource->sendMode((wl_output_mode)(WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED), monitor->vecSize.x, monitor->vecSize.y, monitor->refreshRate * 1000.0); resource->sendMode((wl_output_mode)(WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED), monitor->vecPixelSize.x, monitor->vecPixelSize.y, monitor->refreshRate * 1000.0);
if (resource->version() >= 2) if (resource->version() >= 2)
resource->sendDone(); resource->sendDone();