mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-01 04:13:48 -07:00
wayland: fix invalid wl_output_mode dimensions sent
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user