Skip to content

Commit

Permalink
wayland: fix invalid wl_output_mode dimensions sent
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jun 8, 2024
1 parent 5b6d54c commit 10e0207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/core/Output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void CWLOutputResource::updateState() {
if (resource->version() >= 2)
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)
resource->sendDone();
Expand Down

0 comments on commit 10e0207

Please sign in to comment.